LDR Photoresistor
Resistance changes with incident light.
What is the LDR Photoresistor and what is it used for?
Resistance changes with incident light. Makers use it to make a light-triggered LED.
Ambient light detection
Sensors convert a physical quantity into an electrical signal. Calibrate, verify module supply, interfaces and environmental limits.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Light level (resistance falls as light rises) |
| Range | About 10 to 20 kΩ in room light; 1 MΩ or more in darkness (GL5528) |
| Accuracy | Not calibrated; good for relative light |
| Interface | Analog, in a voltage divider |
| Supply voltage | Any, through a divider |
| Operating temperature | −30 to 70 °C |
Pinout
How to use it
Make a divider with a 10 kΩ resistor and read the middle with analogRead. Brighter light gives a higher reading in this wiring. Slow to react (tens of ms).
void setup() { Serial.begin(9600); }
void loop() { Serial.println(analogRead(A0)); delay(200); }Applications
Builds that use it
Light level dashboard
Greenhouse trend monitor
Mini weather station
Dark-activated street light with one transistor
Single-axis solar tracker
Light-seeking robot
Laser tripwire alarm
Darkness sensor with two transistors
Common questions
What is the LDR Photoresistor used for?
In products: ambient light detection. In maker projects: make a light-triggered LED.
How does the LDR Photoresistor work?
Sensors convert a physical quantity into an electrical signal. Calibrate, verify module supply, interfaces and environmental limits.
What voltage does the LDR Photoresistor need?
Any, through a divider.
How do I connect the LDR Photoresistor to an Arduino or ESP32?
Analog, in a voltage divider. Pins: Either lead (No polarity: one side to VCC, other side to the analog pin with 10 kΩ to GND).
