What is a Photocell?

Photoresistors (photocells) are simply variable resistors in many ways similar to potentiometers, except that the resistance change in light level rather than by turning a knob.

Photoresistors can be used as light sensors, which can enable robot behaviors such as hiding in the dark, moving toward a beacon, etc.