ArduinoStudio

Photoresistor (LDR)

A light-dependent resistor (LDR). Resistance decreases with increasing light intensity. Use for light-sensing projects like automatic lights.

Overview

A photoresistor changes its resistance based on the amount of light hitting its surface. In darkness, resistance is very high (around 1 megaohm); in bright light, it drops to around 10 kilohms. By using a voltage divider circuit, you can read the light level as an analog value (0-1023) on the Arduino.

Specifications

ParameterValue
Dark Resistance~1M ohm
Light Resistance~10k ohm
Max Voltage5V

Wiring Guide

ConnectionArduino Pin
One leg5V
Other legAnalog pin (A0-A5) AND to GND through 10k-ohm resistor

This forms a voltage divider. Read the analog pin with analogRead() to get a 0-1023 value proportional to light intensity.

Usage in ArduinoStudio

Drag the Photoresistor component onto the canvas, assign an analog pin, and use sensor-data events in your sequence to react to light levels. Combine with an LED to build an automatic night light.

← Back to Components