What is a photoresistor?

A photoresistor is a special kind of resistor used in circuits.

Photoresistors work by measuring light that shines on them similar to a solar panel. The lighter the area the less resistance there is in the photoresistor. The darker the area the more resistance there is in a photoresistor.