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

Fix bug where no results are returned #12

Closed wilyarti closed 4 years ago

wilyarti commented 4 years ago

Fix bug where STATUS_NOT_READY is returned after the first two results.

I have a two new sensors 20190705 date code that only return two readings after warm up before returning STATUS_NOT_READY codes.

This edit fixes the problem. Tested on ESP M2 micro controllers.