Photo cell (CdS photoresistor)
CdS cells are little light sensors. As the squiggly face is exposed to more light, the resistance goes down. Resistance ranges from 16-33K Ohm, per the datasheet.
To use, connect one side of the photo cell (either one, its symmetric) to power (for example 5V) and the other side to your microcontroller's analog input pin. Then connect a 10K pull-down resistor from that analog pin to ground. The voltage on the pin will be 2.5V or higher when its light out and near ground when its dark.
This photocell is NOT ROHS compliant.
Might We Recommend