MH-Z19 icon indicating copy to clipboard operation
MH-Z19 copied to clipboard

Getting wrong temperature on MH-z19c

Open vignesh8458 opened this issue 2 years ago • 7 comments

Hi,

I am usning MH-Z19c sensor on esp8266.

I am getting the same temperature value:

CO2: 672 Temperature: -40 Accuracy: 0 CO2: 675 Temperature: -40 Accuracy: 0 CO2: 682 Temperature: -40 Accuracy: 0 CO2: 684 Temperature: -40 Accuracy: 0 CO2: 689 Temperature: -40 Accuracy: 0 CO2: 691 Temperature: -40 Accuracy: 0 CO2: 693 Temperature: -40 Accuracy: 0

Please help me on this.

vignesh8458 avatar Oct 19 '21 13:10 vignesh8458

This is due to the newer version of the sensor, the manufacturer shuffles the registries around and I'm currently not sure the best way to go about fixing these types of unpredictable changes.

I would like to have a fix in place soon, but I can't make any promises right now.

WifWaf avatar Jan 10 '22 16:01 WifWaf

Thanks for the reply.

I will wait.

vignesh8458 avatar Jan 11 '22 05:01 vignesh8458

me too; thank you in advance for your effort!

Cybolord avatar Jan 28 '22 10:01 Cybolord

Me too, and thank you!

etodorovich avatar Mar 04 '22 17:03 etodorovich

This should have been fixed in https://github.com/WifWaf/MH-Z19/commit/04a6f85f980cae100f6c9472a1bbe484cc10dd3c.

I'll add a new release shortly.

I only have two sensors to test the changes on, so hoping I'm correct in that it fixes all sensor versions over 5.00. If not, the firmware version (which can be found in the get device info example) would be helpful.

WifWaf avatar Jul 28 '22 22:07 WifWaf

I have a similar issue with MH-Z19

CO2 (ppm): 0 !Error: Timed out waiting for response Temperature (C): -17

The product is this. https://www.aliexpress.com/item/32706795833.html (the silver one on the leftmost pic)

Dixhom avatar Jun 13 '23 15:06 Dixhom

I have a similar issue with MH-Z19

CO2 (ppm): 0 !Error: Timed out waiting for response Temperature (C): -17

The product is this. https://www.aliexpress.com/item/32706795833.html (the silver one on the leftmost pic)

I've not seen the silver version before, so it might be running significantly different firmware. Try using getCO2(false) as this uses the most documented command.

WifWaf avatar Jun 15 '23 17:06 WifWaf