Photo cell (CdS photoresistor)

Product ID: 161
Qty Discount
1-9 $0.95
10-49 $0.86
50+ $0.76


CdS cells are little light sensors. As the squiggly face is exposed to more light, the resistance goes down. When it's light, the resistance is about ~1KΩ, when dark it goes up to ~10KΩ.

To use, connect one side of the photocell (either one, it's 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 it's light out and near ground when it's dark.

CdS photocells are not RoHS compliant, so if you need something equivalent but RoHS compliant, check out the phototransistor.

For a full tutorial with wiring diagrams, code examples, and project ideas, please read the photocell tutorial page!

Technical Details


  • Length: 4.46mm/0.18in
  • Width: 5mm/0.20in
  • Height: 2.09mm/0.08in
  • Weight: 0.25g/0.01oz

Revision History:

  • As of Dec 15, 2019 the resistance range has changed to 1K-10K


Visualise data measurements inside an online Adafruit IO dashboard
Send real time analog sensor data to Adafruit IO!
Light up your mailbox and get notified when your products arrive!
CdS Cells, Photoresistors, & Light Dependent Resistors (LDR)
See All Guides