
Hello friends, I hope you all are doing great. Today, I am going to share the new MH-Z19B CO2 Sensor Library for Proteus V1.0. The MH-Z19B is the small gold-plated NDIR (infrared) carbon dioxide sensor that sits in many indoor air-quality monitors, ventilation controllers and school CO2 traffic lights. It measures real CO2, not just "bad air", and it talks to an Arduino over a UART and a PWM pin. Behind the part sits our own model, written from Winsen's user's manual and checked against the MH-Z19 Arduino library, the one most makers use with this sensor - so the library's own commands get the answers they expect. The sensor preheats, follows a change of the air with its response time, holds its zero point at 400 ppm, corrects itself with ABC, and can be calibrated right or wrong, just like the real one. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window and three test tools. The demo runs on our Arduino UNO V4.0. NOTICE: a CO2 sensor is easy to fake: a number that follows a slider. We wanted more. Our MH-Z19B answers the same 9-byte commands as the real one, bit by bit, gives the same PWM cycle, needs its preheat, lags behind the air and can be calibrated in the wrong air - so a sketch that reads too early, uses the wrong range or calibrates in a stuffy room fails exactly as it does with a real sensor. It took our team a lot of hard work. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments ...








