LDR

Light-dependent resistor, photoresistor

An LDR is a resistor whose resistance drops when light shines on it.

Use it in a voltage divider with a 10 kΩ resistor and read the middle point with an analog pin.