A cadmium-sulfide (CdS) photo resistor (or photo cell) is a device that
changes resistance depending on light intensity.
It is sensitive, fast,
and has been around for decades. It's often used in street lights and as
an "electric eye."
Note the resistance decreases from millions of ohms
in darkness to as little as thousands of ohms in bright light depending on the CDS cell you choose.