#define DARK HIGH
#define LIGHT LOW
const int LDR_PIN = 16;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(LDR_PIN, INPUT);
}
void loop() {
int lightState = digitalRead(LDR_PIN);
if (lightState == DARK) {
Serial.println("Dark!");
}else {
Serial.println("Light!");
}
// put your main code here, to run repeatedly:
delay(500); // this speeds up the simulation
}