
IDUINO for Maker’s life
www.openplatform.cc
Light Dependent Resistor Module(SE012)
1 Introduction
Light Dependent Resistor, also called photo-resistor, are light sensitive devices most
often used to indicate the presence or absence of light, or to measure the light
intensity.
Specification
Operation voltage: 5V
3Pin
Size:25*15mm
Weight:1.2g
2 Pinout
Analog output pin, real-time output
voltage signal
3. Example
In this example, this module will read the value of resistor and print in the Serial
Monitor. These value can be reflect the intensity of environment light.
The connection as below:

IDUINO for Maker’s life
www.openplatform.cc
********Code Begin********
int sensorPin = A5; // select the input pin for the potentiometer
int ledPin = 13; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
sensorValue = analogRead(sensorPin);
digitalWrite(ledPin, HIGH);
delay(sensorValue);
digitalWrite(ledPin, LOW);
delay(sensorValue);
Serial.println(sensorValue, DEC);
}
********Code End********