Commit 0604a79c authored by Käppler's avatar Käppler
Browse files

co2_sensor: Report invalid CO2 measurements

parent 0878a413
......@@ -216,6 +216,7 @@ namespace sensor {
if (co2 <= 0) {
// NOTE: Data is available, but it's sometimes erroneous: the sensor outputs
// zero ppm but non-zero temperature and non-zero humidity.
Serial.println(F("Invalid sensor data - CO2 concentration <= 0 ppm"));
switchState(BOOTUP);
} else if (co2 < 250) {
// Sensor should be calibrated.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment