#define LDR_SENSOR A5
int LDR;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
LDR = analogRead(LDR_SENSOR);
Serial.println(LDR);
delay(500);
}
#define LDR_SENSOR A5
int LDR;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
LDR = analogRead(LDR_SENSOR);
Serial.println(LDR);
delay(500);
}