//insert the value of the ldr sensors and print this value on the serial port
const int ledpin=12;
const int ldrpin=A0;
void setup(){
pinMode(ledpin, OUTPUT);
pinMode(ldrpin, INPUT);
}
void loop(){
int ldrsensor=analogRead(ldrpin);
if(ldrsensor <=200){
digitalWrite(ledpin, HIGH);
Serial.print("Its dark,switch on the led");
Serial.println(ldrsensor);
}
else{
digitalWrite(ledpin, LOW);
Serial.print("Its bright,turn of the led");
Serial.println(ldrsensor);
}
}