int ldr;
void setup() {
// put your setup code here, to run once:
pinMode(25, INPUT);
pinMode(26, OUTPUT);
Serial.begin(9600);
}
void loop() {
ldr = analogRead(25);
Serial.println(ldr);
if(ldr<2111){
digitalWrite(26, 0);
} else{
digitalWrite(26 ,1);
}
// put your main code here, to run repeatedly:
delay(500); // this speeds up the simulation
}