diff --git a/ampel-firmware/co2_sensor.cpp b/ampel-firmware/co2_sensor.cpp index 23655a2d576f0e4762c1f1ca29700f869afc8acf..37388a61172ef4a5f8202042af42d4c1cb45e59a 100644 --- a/ampel-firmware/co2_sensor.cpp +++ b/ampel-firmware/co2_sensor.cpp @@ -83,6 +83,10 @@ namespace sensor { ESP.restart(); } + // Sometimes after a hard reset of the ESP the SCD30 needs + // a long time until returning the first measurement. Resetting it + // after startup seems to fix this behaviour. + scd30.reset(); switchState(BOOTUP); Serial.print(F("Setting temperature offset to -"));