Show CO2 Historical Level Curve With ESP32

Once I had made a project about the CO2 monitor that had such a problem. The displayed value changes too frequently and fluctuates greatly, which makes it impossible for me to accurately judge the CO2 level. I have a point to make it better now—record the history level and draw its to a line.

Step 1: Why to Record Historical Level

For a parameter that is very easy to cause change with a significant range, it makes no meaning to check the level at a certain moment. Like the CO2 level, a very high concentration may be reached at this moment, but it may return to normal in the next moment in a certain area. Usual temperature and humidity in the air are measured by checking the current value, but the CO2 concentration measurement is different. It is the level obtained by measuring the concentration in a certain space with the sensor, which there are too many factors affected: wind, people breathing, temperature, humidity and so on. So recording the historical value is important to judge the CO2 level and changes.

Step 2: Sensor Board

As the last project, I also used the SGP30 sensor to measure the CO2 concentration level. In order to convenient, I used an indoor environment board. This board base on the SGP30, also integrated the DHT11 module on board for measuring the temperature and humidity. Besides there is a buzzer on board for warning. Most importantly, it is can be used with my 3.5inch LCD device that I did not have to purchase the display and controller again. As the picture shown, the indoor environment board can be plugged into the device directly.

Step 3: Program

I have programmed the device again with Arduino. It would display the value which the sensor measured, also draw a curve with the historical values on the 3.5inch LCD. The Github link for the program:

Step 4: Test

The CO2 would sink when the air was not flowing, I put the device in a place where the height is not so high, such as the desk. And it will be meaningless to put it on the ground. I tried to take a breathing, the CO2 concentration would raise to high level, and back to the normal after moments. If check the current level and ignore the history, it would cause a mistake that the high value is the current CO2 concentration level in the air. As long as check it with the line chart which drawn with the historical values, you can easily find that is an Inaccurate number. This curve will not fluctuate too much in normal.

Step 5: Expansion

Although this project is used to monitor the CO2 concentration level, it can be adjusted according to your wish to monitor TVOC, or temperature, or humidity. As the picture show, it collects two kind of values and draw its into the lines on the display.

Step 6: Final

This project not only displays the current CO2 value, but also displays the historical value and draws it into a line graph, so that people can more accurately distinguish the current CO2 level at a glance. I think that is very helpful for people who are concerned about CO2 level or studying changes in CO2 levels.

Source: Show CO2 Historical Level Curve With ESP32

About The Author

Muhammad Bilal

I am a highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Leave a Comment

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

Scroll to Top