From d5b48ee1b389cb994b3f741ce02c11b5ab387df4 Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 1 Aug 2024 11:43:26 +0100 Subject: disable auto-calibration it works if the sensor spends most of its time powered on, outside mine spends most of its time powered off, and when it's on, it's inside rooms with people --- co2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/co2.h b/co2.h index a6a1480..6a89c8d 100644 --- a/co2.h +++ b/co2.h @@ -28,7 +28,7 @@ public: Serial.println(errorMessage); } - error = scd4x.setAutomaticSelfCalibration(1); + error = scd4x.setAutomaticSelfCalibration(0); if (error) { Serial.print("! CO2 setAutomaticSelfCalibration() error: "); errorToString(error, errorMessage, 256); -- cgit v1.2.3