Electric eye
An electric eye is a photodetector used for detecting obstruction of a light beam. An example is the door safety system used on garage door openers that use a light transmitter and receiver at the bottom of the door to prevent closing if there is any obstruction in the way that breaks the light beam.