An "electric eye" alarm detects a break in the beam of light not with a simple "electric" cell but with this type of cell
... in the cab and to 
disable the photoelectric cell system, alarm and/or cut-off ...