removed tsl2561 == 0 => too bright
This commit is contained in:
parent
a2cf20a189
commit
7041a35090
@ -22,8 +22,6 @@ void sensorRead() {
|
||||
if (!tsl.getEvent(&event)) {
|
||||
MySerial.printf("TSL2561: Failed to read.\n");
|
||||
sensorSetup();
|
||||
} else if (event.light == 0) {
|
||||
MySerial.printf("TSL2561: Too bright.\n");
|
||||
} else {
|
||||
mqttPublish("garten/helligkeit", event.light, "lux");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user