const int LDR = A0;
int value = 0;
void setup() {
Serial.begin(115200);
}
void loop() {
value = analogRead(LDR);
Serial.print("De waarde van de lichtsensor is: ");
Serial.println(value);
Serial.print("Lichtsterkte: ");
Serial.print(float(float(value)/1023*100));
Serial.println("%");
delay(1000);
}