tobiasschuerg / MH-Z-CO2-Sensors

Arduino imeplementation for CO2 sensors of the MH-Z series (Intelligent Infrared CO2 Module)
MIT License
77 stars 40 forks source link

Support for MH-Z19C? #22

Closed marcelstoer closed 2 years ago

marcelstoer commented 3 years ago

Wondering if anyone has tested this with the MH-Z19C yet? According to the manufacturer information which we make available at https://thingpulse.com/product/mh-z19-co2-sensor/ it should be a drop-in replacement. So far we've been using https://github.com/WifWaf/MH-Z19.

rams007 commented 3 years ago

I tested. i have MH-Z19C its worked . I just pass MHZ19B as parametr and its worked. with PWM i alwayse get data with UART i get response -5 BUT if i comment line 108 in MHZ.cpp it worked . i dont know why isReady returned false but if delete this check - all working correct.

wollewald commented 3 years ago

I have made the same experience on a MH-Z19C and on a MH-Z14 (without suffix). Apart from that it works fine.

tobiasschuerg commented 3 years ago

I don't own that sensor, but we can easily add a configuration for it. As stated above there is probably no big change.

Feel welcome to cerate a pull request. 🎆

tobiasschuerg commented 2 years ago

Support for the MH-Z19C is added with the latest PR.