Photosensors

 

“A photoresistor or light dependent resistor (LDR) or photocell is a resistor whose resistance decreases with increasing incident light intensity; in other words, it exhibits photoconductivity.” wikipedia

I keep a large supply of these inexpensive sensors on hand.
You can find them available at DigiKey.