A photo switch controller (also known as a photocell switch or photoelectric switch) is a device that automatically turns electrical devices on or off based on the ambient light level. It uses a light-sensitive sensor, typically a photocell or photodiode, to detect the presence or absence of light.