Learn how to create circuits that turn on and off as the light changes from light to dark. A photoresistor or light sensor is used to detect light. In bright light, the sensor acts like a button that has been pushed and allows electricity to flow. In the pitch dark the sensor is like a button at rest, no electricity flows. Unlike a button, resistance of a photoresistor decreases with increasing incident light intensity.