An "electric eye" alarm detects a break in the beam of light not with a simple "electric" cell but with this type of cell
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.