CO2, temperature and humidity monitor

CO2 Monitoring is mandatory in many workplaces and it affects two of my clients directly in Barrel Halls where wine is stored and aged in temperature and environmentally controlled areas. The table below shows the affects of various concentrations in the air.

CO2, temperature and humidity monitor

The project described below uses a MH-Z16 or MH-Z19 CO2 sensor and a DHT-22 (or DHT-11 if less accuracy is required) to measure the Temperature and Humidity. It has a 4 line by 20 character LCD Display to show the current readings and status, a warning alarm and two relays which can be triggered on a low CO2 (Generally above 1000 ppm) normally to switch on an extractor fan and a high level (4000 ppm) which will trigger a warning device such as an external alarm. There are two models I used the 0 to 5000 ppm device here but the code will be the same for the 0 to 10000 ppm model.

Warning: The system is mains powered (100VAC – 240VAC) so if you are replicating the project you should be very careful when wiring up and enclosing the board to ensure it meets all safety guidelines, and if it is going into a public space or factory environment it will need to be installed and tested by a qualified electrician. The PCB is designed for a standard industrial 158 x 90 x 65 mm Plastic Enclosure.

Circuit Description

The MH-z19 is a self contained sensor powered from 5V which has its own internal processor and outputs the CO2 level as either a pulse width modulated signal or in a serial UART data format. The datasheet is not very detailed but has enough information to use it. I still have a lot of PIC18F24K22 chips lying about from Wine Technology Marlborough’s MLP project and as this has 2 UARTS I decided to use the serial port. The PIC is a little overkill but two UARTS does mean we have a spare serial port that can be used in case the builder wants to output the air quality data to another system.

Read more: CO2, temperature and humidity monitor


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top