← back to catalog
// light

LDR (Photoresistor)

Analog light-dependent resistor

€4.50
avg eur
LDR (Photoresistor)
Analog
Pins
2
Specs
3
Libraries
1
Protocols
1
// wiring → esp32 devkit v1
One leg
3V3
EN
GPIO36 VP
GPIO39 VN
Other leg
GPIO34
GPIO35
GPIO32
GPIO33
GPIO25
GPIO26
GPIO27
GPIO14
GPIO12
Other leg
GND
GPIO13
ESP32
WROOM-32
devkit v1
USB
VIN 5V
GND
GPIO23
GPIO22 SCL
GPIO1 TX0
GPIO3 RX0
GPIO21 SDA
GPIO19 MISO
GPIO18 SCK
GPIO5 SS
GPIO17 TX2
GPIO16 RX2
GPIO4
GPIO2
GPIO15
sensor pin (left)
sensor pin (right)
unused
// pinout → esp32
Sensor Pin ESP32 Connection
One leg 3.3V
Other leg GPIO 34 + 10kΩ to GND
// technical specs
Resistance ~1kΩ (light) – 1MΩ (dark)
Output 0–4095 ADC
Voltage 3.3V
// github libraries
// notes & warnings
Use ADC1 (GPIO 32–39). ADC2 conflicts with WiFi. Voltage-divider with 10kΩ resistor.
// related sensors · light
Submitted by caio.ricciuti@outlook.com · Apr 26, 2026