diff --git a/MHZ.cpp b/MHZ.cpp index 43b6bfa..4de8b42 100644 --- a/MHZ.cpp +++ b/MHZ.cpp @@ -243,7 +243,7 @@ int MHZ::readCO2PWM() { if (debug) Serial.print("."); th = pulseIn(_pwmpin, HIGH, 1004000) / 1000; tl = 1004 - th; - ppm_pwm = 5000 * (th - 2) / (th + tl - 4); + ppm_pwm = 2000 * (th - 2) / (th + tl - 4); } while (th == 0); if (debug) { Serial.print(F("\n # PPM PWM: "));