Photoelectric switches control the power to a connected appliance or fixture by measuring the light falling on the lens (also called the "eye"). These switches are mostly employed in outdoor locations to allow lights to turn on automatically after the sun has gone down.