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);
if (ldr < 2111){
digitalWrite(26, 0);
}else{
digitalWrite(26, 1);
}
Serial.println(ldr);
// put your main code here, to run repeatedly:
delay(1000); // this speeds up the simulation
}