diff --git a/Claire.ino b/Claire.ino index 73f1846..949674f 100644 --- a/Claire.ino +++ b/Claire.ino @@ -335,7 +335,11 @@ void readSensors(void) { output += " ppm, eVOC: " + String(iaqSensor.breathVocEquivalent); output += " ppm"; - int light = analogRead(LIGHT_PIN); + int light = 0; + for (int n = 0; n < 256; n++) { + light += analogRead(LIGHT_PIN); + } + light = (light + 128) >> 8; output += ", light: " + String(light); Serial.println(output); } else {