photointerrupter

Noun

 * 1) An optical device that acts as a switch when a beam of light is blocked by a foreign object