RAJESH SINHA
Published © GPL3+

Automatic Street Light

When there is a need of light it automatically switches ON. When darkness rises to a certain level then sensor circuit gets activated and sw

BeginnerFull instructions provided82
Automatic Street Light

Things used in this project

Story

Read more

Schematics

Automatic Street Light

Code

Automatic Street Light

Arduino
int sensorPin = A0; // select the input pin for LDR

int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
Serial.begin(9600); //sets serial port for communication
}
void loop() {
sensorValue = analogRead(sensorPin); // read the value from the sensor
Serial.println(sensorValue); //prints the values coming from the sensor on the screen

delay(100);

}

Credits

RAJESH SINHA
14 projects • 9 followers
Hey there! I'm Rajesh. I'm passionate about building innovative projects.mail id:- rajeshkumar15022004@gmail.com

Comments