const int t=500;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int light=analogRead(A0);
Serial.println(light);
if(light>t){
Serial.println("BRIGHT");
}
else{
Serial.println("DARK");
}
delay(5000);
}