Last Modified May 24, 2021
- 1 Is it possible to reduce the possibility of Covid with a DIY CO₂ monitor for less than 20 Euros?
- 2 👁️🗨️ Structure of the homemade CO₂ monitor
- 3 ✔️ Build the homemade CO₂ meter
- 4 📺 Video with the complete CO2 Meter tutorial
- 5 🔵 Using the CO₂ meter
- 6 Benefits of this CO₂ meter project
- 7 🌀 Home CO₂ Meter Options and Extensions
- 7.1 Add an OLED screen
- 7.2 Add a custom box
- 7.3 Adding temperature, humidity and atmospheric pressure data
- 7.4 Add notices and audible alarms
- 7.5 Creation of CO₂ evolution graph
- 7.6 Using the meter as portable / portable
- 7.7 Equip the battery meter (portable CO2 meter)
- 8 🛒 What if I want to buy a ready-made CO2 meter?
- 9 📢 Do you have problems? CO2 meter faq
- 10 📜 History of the eMariete CO2 meter
- 10.1 The Sensirion SCD41 CO2 sensor (and the SCD40)
- 10.2 DIY CO2 Monitor with Ultra Low Power Consumption
- 10.3 PeluCO₂: A CO₂ meter on your wrist (wearable)
- 10.4 Battery powered CO₂ monitor (well done)
- 10.5 Color touch screen for CO medidor meter Wow!
- 10.6 Are home CO₂ meters as reliable, accurate and precise as commercial ones?
- 10.7 Gallery: User CO₂ Meters
- 10.8 Connect a BME280 sensor to ESP Easy
- 10.9 CO2 on a giant screen for bars, restaurants, classrooms and the like
- 10.10 CO2 meter with ESP8266 (NodeMCU) and Senseair S8 sensor
- 10.11 MH-Z19B FALSE CO2 Sensors
- 10.12 3D printed box for CO2 meter
- 10.13 Connect and control WS2812B LEDs to ESP8266 with ESP Easy
- 10.14 Using a buzzer with ESP Easy
- 10.15 The MH-Z19B CO2 Sensor Bible
- 10.16 Connect an SSD1306 OLED display to ESP Easy
- 10.17 Comparison of CO2 sensors MH-Z19B vs Senseair S8
- 10.18 DIY: Homemade CO2 monitor with Wifi against coronavirus
In this article I am going to explain how you can build your own homemade DIY CO2 Monitor (carbon dioxide monitor) easily and cheaply.
What I propose is a CO2 (carbon dioxide) meter with wifi, homemade, that you can build for less than 20 Euros, and that I can guarantee you that the result you will obtain will be of an instrument that is equal or more precise and with many more functionalities than many commercial CO₂ meters costing several hundred euros.
This monitor uses a CO2 sensor with NDIR technology and It has nothing to do with the € 60 or € 80 meters that are sold online in terms of reliability, precision and functionalities.
Don't be scared by the length of this article. Yes, it is long, but it has nothing to do with the difficulty. This article is long because I have decided to explain everything step by step, in great detail and with captures, photographs and even videos of each step. Really I could have written a much shorter article explaining how to build this CO2 meter, but it would not have been so complete.
The idea is that anyone can build this CO2 monitor, no need for prior knowledge or special equipment (except for the soldering iron, although you could even do without it).
In addition, it is fully modular, so you can easily expand it with all kinds of accessories, visual and audible alarms and even a touch screen.
However, if you don't want to build your own CO2 monitor, because you do not have time, you do not like to thinker around, or any other reason, you can access a buying guide with the best offers in commercial CO₂ monitors by clicking here.You can buy it at a good price and have it at home in 24 hours.
Is it possible to reduce the possibility of Covid with a DIY CO₂ monitor for less than 20 Euros?
Virtually all scientists have agreed in recent months: The virus is transmitted and contagious through the air, mainly, and one of the most effective ways to reduce the possibility of contracting Covid is to adequately ventilating spaces.
The best way to ensure that a space is properly ventilated is to measure the CO2 present in the air.
If you are still not convinced of this, and want to know more, I suggest you to read the following article:
👁️🗨️ Structure of the homemade CO₂ monitor
The CO₂ monitor that I am about to describe has nothing to envy to commercial units of several hundred euros, being superior in the vast majority of cases, both for precision and for functionalities.
You will learn how to build a homemade CO2 meter with these main characteristics:
Economic. Less than € 20 at the time of drafting this article (I know that by now price has risen, due to the price increase of the CO2 sensor due to high demand, but I hope it will go down again)
- High accuracy (50ppm +/- 3% of reading)
- Wireless connection by Wifi
- Smart (can perform many tasks based on data)
- Web server built-in
- Integration with home automation system
- Publication of data to the internet
- Support for MQTT and HTTP
- LCD display and touch screen optional
The CO₂ meter with Wifi is composed of only two components, low cost and easy to source:
- Module NodeMCU, Wemos D1 Mini or similar, with microcontroller ESP8266 with built-in Wifi
- Sensor CO₂ MH-Z19B or Senseair S8 (There are other sensors available and supported by this project such as the MH-Z14A, the Cubic CM1106 or the Sensirion SCD30, among others).
I have chosen low cost components to build the carbon dioxide meter, in order to keep the price very low.
Buying the components in the links that I propose you on AliExpress:
|MH-Z19B|| Some 18 Euros for the CO₂ sensor MH-Z19B on AliExpress. |
I recommend that you order the one with a range of 5000 ppm.* See below my recommendation to use the Senseair S8 sensor.
Be careful not to buy the MH-Z19C version without looking at its downsides (below).
Many vendors advertise the MH-Z19B but they actually ship the MH-Z19C.
|NodeMCU|| Some 2 Euros from the plate NodeMCU with ESP8266 microcontroller in this AliExpress link.|
It also has many positive reviews and if you choose AliExpress Standard Shipping, which costs less than € 2, you should receive it in a couple of weeks.
You will see that there are several models. I recommend that you ask for the one that says «CP2102«
Use the CO2 sensor Senseair S8 LP.
Due to the high demand of CO2 sensors produced in recent months, there is a real avalanche of fake MH-Z19B sensors, both on AliExpress and Amazon. These sensors give fluctuating and far from reality measurements, in the best case.
I spend a lot of time checking purchase links that I put and trying to make sure, as much as possible, that they are original, but sometimes there are surprises.
If you want to play it safe, and you can afford to spend a little more, I recommend that you use the sensor Senseair S8 LP. Besides being less likely to get a fake one (so far we haven't seen a single one), it's a sensor, from a European company, of better quality and more precision than the MH-Z19B.
I leave you here the link in which I bought: Senseair S8 LP. It's original and it came to me very fast (one week):
You can find more information about fake sensors by clicking on: MH-Z19B FALSE CO2 Sensors
If you don't want to wait that long, you have the option of buying these components on Amazon, with fast shipping. It is more expensive, but if you want it quickly, you will have it at home in 24 hours, in many cases.
A major advantage, now that there are so many fake MH-Z19B sensors, on Amazon you know what it is easy to return it, if you are not satisfied.
- This MH - Z19 C02 gas sensor has high sensitivity, high resolution.
- Provides a variety of forms output modes, such as UART and PWM wave.
- Anti water vapor interference, no poisoning.
- Temperature compensated, excellent linear output.
- ✅ Powerful Microcontroller: The AZ-Delivery Module is a powerful ESP8266 (ESP-12F) microcontroller with 802.11 b / g / n WLAN and integrated antenna.
- ✅ Rapid Prototyping: It is simple to use, allowing you to easily create prototypes through simple programming through Lua code. Plus, with a motherboard-compatible design (27.5mm pin spacing).
- ✅ Dimensions (L x W x H): 58mm x 31mm x 13mm.
- ✅ Large storage and processing space: AZ-Delivery ESP8266 with Wi-Fi has large storage and processing space on board that allows it to integrate with application-specific sensors and devices and support minimal load during runtime. Boost your development in the fastest way combining with NodeMcu Firmware!
- ✅ This product includes an E-Book that provides helpful information on how to get started on your project, helps with quick setup, and saves time in the setup process. We provide a series of application examples, comprehensive installation guides, and libraries.
- ESP8266 CP2102 NodeMCU LUA ESP-12E WIFI serial wireless module.
- Efficient Microcontroller ESP8266 (ESP-12E) with WLAN 802.11 b / g / n and integrated 25dBm antenna.
- Built-in micro-USB, with flash and reset switches, easy to program.
- Convenient prototyping through simple programming by Lua-Script or Ar duino-Code and compatible Breadboard construction.
- Full I / O port and Wireless 802.11 compatible download, no reboot required.
Other purchase options:
Right now, when there are so many fake MH-Z19B sensors, the most advisable thing would be to buy it in the official store of the sensor manufacturer (Winsen), in this way you will have the security of receiving the original sensor.
The problem is that the manufacturer does not sell the MH-Z19B one at a time, it has to be in pairs. So, if you want to build two, or have a friend or relative who wants another, this may be a good option:
|MH-Z19B||2 CO₂ sensors MH-Z19B for about 38 Euros in the official manufacturer store on AliExpress. |
Here you will have the sure to receive the original sensor, and not a copy.
I recommend that you order the one with a range of 5000 ppm.
Just missing a box.
As a box I propose four options:
- Leave it «in the air«. If it is going to be hidden, it is an inaccessible place, there should be no major problem.
- Put it somewhere ornamental element, any adornment or accessory that is in the room and that allows to hide and protect it.
- Buy one plastic box. I use one that I am buying 10 by 10 in several similar assemblies. Simple and cheap. You can find it here, although there are many similar ones. You can also use one of the gray boxes that are usually used in outdoor electrical installations, drilling it properly.
- A 3d printed box. It is the solution that I used. You can find the design and tutorial in this blog, as well as others boxes that users have designed and have been made available to readers selflessly.
You have to consider two important things: You have to try that the CO₂ sensor is heated as little as possible because its measurements are sensitive to temperature and you have to install it so that it receives the air from the room without problems (Do not put it in a closed box or with little ventilation).
CO₂ sensor MH-Z19B
The MH-Z19B carbon dioxide gas sensor is a general-purpose, small-size smart sensor that uses the principle of non-scattered infrared (NDIR) to detect the presence of CO₂ in the air. It has good selectivity, long service life, and other characteristics, such as built-in temperature compensation.
It has simultaneous serial, analog and PWM output and is easy to use. It is a high-performance sensor that combines reliable infrared absorption gas detection technology with good design and an attractive price.
MH-Z19B sensor parameters
|Gas detected||Carbon dioxide|
|Operating voltage||4.5 ~ 5.5 V DC|
|Average current||<60m A (@ 5V supply)|
|Peak current||150 mA (supply @ 5V)|
|Interface level||3.3 V (compatible with 5V)|
|Measuring range||0 ～ 2000 ppm
0 ～ 5000 ppm
|exit sign||Serial (UART) - TTL level 3.3 V - PWM analog output|
|Preheating time||3 minutes|
|Operating temperature||0 ~ 50 ° C|
|Operating humidity||0 to 90% RH (non-condensing)|
|Dimensions||33mm × 20mm × 9mm (Length * Width * Height)|
|Lifetime||> 5 years|
|Gold-plated gas chamber, waterproof and corrosion resistant|
|High sensitivity, low power consumption|
|Temperature compensation, excellent linear output|
MH-Z19B Sensor Applications
|HVAC Refrigeration Equipment|
|Surveillance and air quality equipment|
|Fresh air systems|
|Air purification equipment|
|Schools and educational centers|
You can see here his datasheet.
The module with ESP8266
The ESP8266 is a complete microcontroller on a small chip that includes Wifi and TCP / IP stack and is also very cheap.
|ESP8266 usually used mounted on a moduleas it does not include flash memory or USB and needs some external components to work.|
For this montage I have chosen the NodeMCU module why:
Also, you can power it with a mobile charger ordinary.
|Although the video tutorial that you will find below is made with the NodeMCU Module, you can also use the small Wemos D1 Mini. |
Below you will find his connection diagram, in case you decide for him.
|I could have chosen any other module, such as the small ESP12E, but it would have complicated the assembly a lot, due to the additional components that would have been necessary and also its programming, as it does not have a USB port. |
With the NodeMCU and the Wemos D1 Mini everything is much easier.
✔️ Build the homemade CO₂ meter
Enough of introduction, explanations, data and verbiage and Let's go to the mess! To construction!
You have, below, a video with the entire detailed process, to make it even easier for you.
The construction of the CO₂ meter, the start-up and its use is very simple, I estimate that you can do this project in one or two hours. You just have to follow these steps to build the CO₂ meter with Wifi:
- Write firmware to ESP8266 microcontroller with the program that I provide you
- Connect the CO sensor sensor using just four wires
It is a super useful and quick project for the experienced hobbyist and a excellent first project for the newcomer to electronic gadget. (Only four cables! Who gives more for less?)
Download the CO meter firmware
The first thing you have to do is download the program to your computer what then you will load in the NodeMCU or Wemos D1 Mini and that it will control the operation of the CO₂ meter.
This program is based on the fantastic project ESP Easy, that I have been using for several years with very good results.
To simplify the task as much as possible, and that you do not have to search and download the different necessary programs and files (and find which are the correct ones to use, because there are many), you can download it from here with one click and in one package that I have prepared and that it contains just what is necessary.
Below you can find the video with detailed instructions for ESP Easy recording.
Note: If you have a board other than the NodeMCU or Wemos D1 Mini that I have recommended, you may have to download the complete package from the ESPEasy releases page on GitHub and find the necessary files yourself.
It is very important that when you go to record the firmware on the board, do not have the CO2 sensor connected to the RX and TX pins (temporarily disconnect them if you already connected them). This is because the board shares these pins with the USB port and could «get involved«.
Connect CO₂ sensor MH-Z19B
The connection of the MH-Z19B or Senseair S8 sensors (they connect exactly the same) to the NodeMCU is very easy, it only requires four connections.
There are two types of NodeMCU boards. One that has a pin marked VU and one that does not.
If your badge DOES NOT have a VU pin, connect it like this:
If your board has a pin marked VU (not all have it) connect the positive of the MH-Z19B to that pin.
If you are going to use the plate Wemos D1 Mini, follow the diagram below:
You will need to a soldering iron, tin and a pay a little attention, but it shouldn't take you more than 5 or 10 minutes, even if you have little experience in these matters, or be your first electronics project.
For connection of the MH-Z19B or Senseair S8 LP sensor to the NodeMCU or Wemos D1 Mini, you can use the cable that comes with the MH-Z19B, cutting the connector at the end, as I show you in the video. If your sensor is not the version that comes with a connector, nothing happens, you will need some cables to connect it.
Once you have cut the connector, strip the wires and make the following connections (note that this pin numbering does not match the manufacturer's):
|Pin MH-Z19B||Colour||Function||NodeMCU connection|
|1||Brown||Analog output||Without connection|
|3||Black||Negative power supply (GND)||Pin GND|
|4||Red||Positive feeding (Vin)||Pin Vin|
|5||blue||Data input (RXD)||Pin TX|
|6||Green||Data output (TXD)||RX pin|
In the following images you can see the assembly process, including its connections, in detail:
Cut the CO2 sensor connector
In my case, I ordered the MH-Z19B sensor version with connector.
The first thing I do is, since the cable has a connector on both sides, cut the connector on one side.
Optional: Remove unnecessary cables
The connector comes with all seven wires attached.
As we only have to connect four (Black, Red, Blue and Green), I remove the other three cables so that they do not get in the way and that the assembly is cleaner.
Stripping the wires
We strip the end of the four cables.
It is enough to peel one or two millimeters. The shorter the more "cleansed" will remain when soldered.
We carefully weld the sensor supply to the NodeMCU
- Red wire (positive) to terminal marked Vin
- Black wire (negative) to terminal marked GND
Remember: If you use the Senseair S8 sensor, it connects exactly the same.
If you are using the Wemos D1 Mini board, the Vin pin will be marked 5V.
Solder the data cables
We solder the sensor data input and output cables to the NodeMCU
- Blue wire (RXD, data input) to terminal marked TX (data output)
- Green wire (TXD, data out) to terminal marked RX (data in)
If you use the Wemos D1 Mini board, these pins are called the same.
Remember: If you use the Senseair S8 sensor, it connects exactly the same.
This is how the wiring will be, once we have soldered the four cables.
The finished CO2 meter
Now you just have to connect the sensor to the NodeMCU, taking care not to put the connector upside down (I recommend that you connect the sensor once you have recorded the firmware on the board).
This will be how our CO2 meter will look, once the four cables are soldered and the sensor connected.
📺 Video with the complete CO2 Meter tutorial
In this video you can see everything you need to build the CO₂ meterincluding electronics, ESP Easy recording and setup.
Remember: it is important that when you go to record the firmware on the board, you do not have the CO2 sensor connected to the RX and TX pins (temporarily disconnect them if you already connected them).
The video has been recorded using an MH-Z19B sensor and a NodeMCU board. Remember that, if you use the Senseair S8 sensor (recommended) its connection is exactly the same (in this case see also this article I've written with the differences when using the Senseair S8).
If you have any questions or problems, do not stop consulting this section.
You also have at your disposal the Telegram group by eMariete, where you will find all the help you need.
🔵 Using the CO₂ meter
Your CO₂ meter with Wifi is now finished. You just have to configure it, place it in the room you want to control and read the CO₂ concentration values from time to time.
I recommend that you see in detail the part corresponding to the configuration in the video, where it is explained in detail. However, below you have additional information.
CO₂ meter setup with Wifi
The meter needs a minimal configuration to work, which basically consists of configuring the wifi to connect it to the network of your home, office, school, etc. and tell ESP Easy which sensors it has connected (in this case only the CO2 sensor) and what to do with them.
ESP8266 Wi-Fi Configuration
As soon as you record the ESP8266, and to facilitate the configuration of the Wifi, you will see that it creates an access point called ESP-Easy.
All you have to do is connect from your computer, tablet or phone to that access point and configure the meter, in a very simple way, through a web page, thanks to the fact that the program that we have recorded in the ESP8266 includes a web server with the necessary pages for easy setup.
Configuration of the ESP8266 inputs and outputs
Through the same web page that you used to configure the Wi-Fi connection, you can now configure the inputs and outputs of the ESP8266 to tell you what's connected.
In our case, the only thing our ESP8266 has connected is the CO2 sensor and you are going to configure it so that it knows how to read the values and what to do with them.
As you will discover, it is very easy to expand the project to include other sensors and actuators as sensors temperature and humidity, LCD screens, colored LEDs, etc. (you have links to detailed tutorials below).
Reading the CO₂ data from our meter
Your CO₂ meter with Wifi is already working, reading the CO₂ concentration in the room where you have placed it and processing that data.
To read and process this data you have many possibilities that will allow you to read the CO₂ value directly and do many other things, such as: store them, create graphics, create alarms of various types when certain values are reached, send them to the internet, integrate them with your home automation system and much more.
The most basic use is see the CO₂ present in the room in real time. For that you only have to connect to the meter web page, with your web browser computer, tablet or mobile phone and access the "Devices" tab, where you will see the existing value at that moment. The most recommended is save this page to your favorites, for access it easily, directly, whenever you want.
CO2 meter calibration
Both MH-Z19B and Senseair S8 LP sensors they are already factory calibrated. That does not mean that you can ignore them forever (as in any CO2 meter, commercial or not).
Over time it is usually necessary calibrate the sensor, but don't worry, it's very easy.
You can find the instructions to calibrate the sensor here: Zero Point Calibration
Benefits of this CO₂ meter project
There are several projects similar to this on the internet. From small basic prototypes with the basic functionalities to obtain local CO2 measurements to complete systems that include all kinds of functionalities, own software platform for capture and visualization, etc.
I am going to present you here what I think are the main advantages and benefits and the advantages From this project of CO2 meter.
Reliability of measurements
What a CO₂ meter has to do, as obvious as it may seem, is to measure and CO₂, and do it with a certain precision (that you know how much CO₂, there is with sufficient precision), reliability (that the meter works correctly at all times) and repeatability (always measure the same thing under the same conditions).
There are many projects that promise to measure CO2 but actually use electrochemical sensors of general use for the detection of organic volatiles that do not measure only CO2, but all those gases together, so you really don't know what you are measuring.
There are, for example, many 'CO2 meters' using sensors such as the MQ-135 or CCS811, but these sensors they are not used to measure CO2. These sensors measure all organic gases together (Ammonia, Nitrogen Dioxide, Alcohol, Benzene, Carbon Dioxide and Monoxide, smoke, etc.), so if there is someone who is throwing hydroalcoholic gel or someone smoking or there is a source of combustion, such as a fireplace, the measurements will trigger without the possibility of knowing what is causing them to shoot.
In case I have not made it clear: DO NOT MOUNT A METER BASED ON THE MQ-135 or CCS811 SENSORS IF YOU WANT TO MEASURE CO₂!
The project that I present here, uses an NDIR type sensor that only measures CO₂. The same sensor used in commercial meters for hundreds of euros. When you get a measure you will know that that measure it is from CO₂ and not from other gases, that surely do not interest you.
Many commercial meters that call themselves "CO₂ meters"Up to € 200 in price, they use the MQ-135 and CCS811 sensors. Run away from them if you want to measure CO₂!
In case it is not clear, the only parameter that you could obtain with sensors like the MQ-135 or the CCS811 would be: «Value in unknown units of something unknown in the air, which is not known what it is or in what quantity it is«. As you can see, something very little useful.
Ease of construction
In many projects that are online, we see that they are relatively complex to build, with many components and welds. Sometimes it is necessary to have measuring instruments to make adjustments.
This project has been designed and documented to be extraordinarily easy to build and is within reach of anyone with no knowledge of electronics. Only four connections have to be made and it does not require measuring instruments or adjustments of any kind.
I know there are teachers who are building this meter with children, as an activity in class. See if it's simple!
Ease of programming
Many of the projects that we find on the internet are complicated to program. It is even necessary to have programming tools, such as compilers, IDEs, or specific editors.
Also in many projects we have to edit configuration files by hand, which makes it difficult for the non-expert user.
In this project, no need to program anything. It's all pre-programmed and all you have to do is save the supplied program, which you can download from this page, on ESP8266 with a very simple process, following the video I have prepared.
Easy to set up
Many projects have very complicated configuration processes, for non-experts, in which it is necessary to modify many parameters, sometimes modifying parameter files by hand or even the source code of the program before compiling it and loading it into the meter.
In this project, all the configuration is done very easily, through a web page. No need to edit files by hand or modify code.
Easy to calibrate
Many projects, especially those based on sensors like the MQ-135 and the like, need tedious and very complicated calibration processes, which sometimes has to be repeated daily or every time it is going to be measured.
This project does not require any type of calibration. The sensor comes already factory calibrated and then I know autocalibrate, by himself, periodically.
Expandable modular design
Most existing designs on the internet have certain functionalities and these they are what they are. It is not possible to reduce or expand the design without making changes to the electronics and, above all, programming.
This project is completely modular and expandable without the need for changes in programming nor in the basic circuit. You can start with a basic CO₂ meter and later expand it, in a very simple way, with different types of screens, LEDs, additional sensors (such as temperature and humidity), etc.
Communications and integration
That the CO2 meter can communicate with the outside and send its data (and even receive it) is very useful on many occasions. In most of the projects available on the internet, either the meter you have no possibility of communication, or your possibilities are very limited.
This project, on the contrary, has some huge communication possibilities that allows you to send data to virtually any device or system, without making any changes to your programming, supporting most of the possibilities like MQTT, HTTP, Telnet, UDP, P2P, etc.
Don't you know what all that I've put on you is? Don't worry! You don't have to know anything about it, they are just options that are there for whoever wants to use them.
In most projects the possibilities to consult the data are very limited. Being necessary to do major changes in your design or programming to be able to add new display options.
In this project, you can visualize the data, both in real time and historical, very easily in multiple ways: integrated web page, screens of various types, multi-color LEDs, mobile app, historical graphics on cloud platforms such as Thinkspeak, etc..
On many occasions it is interesting to know the CO2 concentration or historical remotely.
With most of the devices that we find on the internet this would be impossible or would require important changes in your programming.
With this project this is very simple, being able to consult from the mobile, at any time and from anywhere in the world, current and historical measurements.
Most projects offer real-time measurements, but do not have any data persistence system, to be able to store measurements for later analysis or integration into other systems.
This project allows, in addition to the easy use of cloud services (as Thingspeak, IFTTT and the like), databases like InfluxDB (both local and remote), etc.
Portability and mobility
Sometimes it is interesting to be able use the CO2 meter portable or on the move. Most of the existing projects on the internet do not contemplate this possibility.
This project contemplates the configuration, permanently, of two Wi-Fi networks, so that if the first is not available, the meter connects to the second automatically.
Not only that, but if we turn on the meter in a place where there is no Wi-Fi network that it has configured, It will automatically enable us a web page to which we can connect from the mobile to configure any other Wi-Fi network in a few seconds.
We can also configure the second wifi network so that use the internet connection that our mobile provides automatically.
In addition, being fed by a standard micro USB port, we can use a normal powerbank to run the meter on battery (based on my tests we can expect a autonomy of up to 48 hours, depending on the powerbank we use).
You also have a complete tutorial with a expansion to equip our rechargeable battery meter with built-in charger.
🌀 Home CO₂ Meter Options and Extensions
The ESP8266 controller and the firmware it is based on are very powerful and you allows you to add endless possibilities.
Then you will see some of the possibilities, simpler, that this carbon dioxide meter allows you.
These extensions they are explained in detail in this blog and in my YouTube videos (Some have been contributions that users like you have made to the blog), but you can easily make many more extensions yourself.
Add an OLED screen
In the following article you can see the step-by-step tutorial to add an OLED screen to the meter, in case you prefer to see the values easily, without using your mobile or computer. It is also interesting to be able use meter without Wifi connection.
Add a custom box
A custom box is the perfect complement to your meter. It will give a more professional finish and will protect the assembly from bumps and snags.
You can use a electrical junction box, adapting it very easily.
In the following article you will find custom boxes for 3D print, both the one designed by me, and others, shared disinterestedly by users who have built this CO₂ meter.
Adding temperature, humidity and atmospheric pressure data
Add easily and for a few euros thermometer, hygrometer and barometer high precision to the CO₂ meter.
Add notices and audible alarms
You can easily add a buzzer and set alarms and warnings when certain levels of CO2 are reached.
In this article you have a complete explanation with everything you have to do prepared to copy and paste.
Creation of CO₂ evolution graph
You can create, in a very easy way, a graph with the evolution of CO₂, using the free cloud service from ThingSpeak. Like this:
The ThingSpeak service allows you to store the data from your sensors in the cloud for free and consult them from your mobile, tablet or computer.
Thanks to user ManeKoYou can see quick instructions in the comments below to automatically send your CO2 meter data to ThingSpeak (press here if you want to go directly to the comment where it is explained).
Using the meter as portable / portable
Sometimes it may be convenient to use the meter in portable (in a different place than you normally have it).
This use, so convenient, is very simple and for this you have several possibilities:
Setting up a second Wi-Fi network
You can configure a second wifi network with its SSID and password, to which the CO2 meter will connect automatically if you can't find the main wifi network.
For it you only have to include the data of the second wifi (SSID and password) in the configuration tab («Config«) And you won't have to do anything else.
A very interesting use of this possibility is to use, when you are away from home, the access point you can create your cellphone. In this way it easily becomes a connected portable meter. Perfect for IoT solutions.
Connection to any Wi-Fi network, when neither of the two configured is available
When neither the main Wi-Fi network nor the secondary network is available, the CO₂ meter will automatically create a wifi network to which you can connect from any mobile, tablet or computer. You just have to search for the "ESP Easy" network and connect to it to be able to set up a new Wi-Fi network.
Equip the battery meter (portable CO2 meter)
In the following article I explain, step by step and with video, how you can equip the meter with a rechargeable battery and thus convert it into a portable CO₂ meter with sufficient autonomy to use it throughout the day.
🛒 What if I want to buy a ready-made CO2 meter?
If, for whatever reason, you don't want to build your own homemade CO2 meter, you have the option of buying a commercial one. Plug and play.
There are many models on the market, but, I must warn you that many of them are worth absolutely nothing, in order to measure the concentration of CO2, because they have a type of sensor that is affected by all types of gases and the meter is not capable of distinguishing CO2 from any other gas (and there are many gases in the air that go and they come, so you'll never know if it's measuring CO2 or something else).
Whichever meter you buy, I recommend that you buy one that has an NDIR sensor (And keep in mind that, if it doesn't wear it, it probably won't wear it).
If you want a commercial meter that is not very expensive and that works well, I would propose one of these two options:
- Date, time, CO2, humidity, temperature (℃ / ℉ switchable) full color, 3.2-inch screen, and other data clearly.
- The application field of the carbon dioxide detector is public site, agriculture, animal husbandry, industry and more. With professional-grade detection technology, this CO2 meter has stable performance and high precision.
- You can store up to 999 groups of data and have a historical data trend table for you to review.
- Real-time CO2 monitoring by the high precision sensor, and it will alarm you once the CO2 exceeds the setting value.
- Compact size with portable storage, easy to operate and carry. The rechargeable lithium battery is included or can be powered via a 5V USB cable.
- Air quality level, humidity and temperature, noise
- Tips on how to create a healthy environment
- 3 profiles in the application; baby, person with asthma, general
- Real-time notifications, ios 9 or higher for iphone, ipad, ipod, android 2 or higher
- Connect multiple home coaches to your smartphone; to control multiple rooms
I have this one down here that is very similar, but with some additional things that make it a weather station:
- Control your indoor and outdoor environment in real time: indoor and outdoor temperature, humidity and air quality, indoor noise level, barometric pressure
- Receive alerts in real time: with our weather station, configure indoor and outdoor alerts and receive notifications on your smartphone; you will know when to ventilate with the ventilation alert
- Access your data remotely and with your voice: access your weather measurements with ease and at any time from your smartphone, tablet or computer, or by using your voice to interact with alexa on amazon echo or with siri thanks to the compatibility with apple homekit
- Analyze the past: access the history of your data to observe what happens when you are not there or analyze the graphs to understand the weather trends
- Foresee the future: check the 7-day weather forecast to adapt your clothing and your outdoor activities
If you want to see more models available at a good price, the best sellers, the best offers, etc. you have the option to visit this CO2 meter buying guide.
📢 Do you have problems? CO2 meter faq
Although the project is really simple, there is always the possibility that you may have a question or that some kind of problem will appear.
In the list that you will see below, it is not that there are many things because of many problems (most are simple doubts and the problems are almost always the same, and they almost always have to do with the charger or the USB cable), but because it they have built hundreds of people and any little doubt that has arisen I have documented it.
Here I leave you the Frequently asked questions made by users who have been encouraged to build the CO2 meter.
📜 History of the eMariete CO2 meter
Here you can see the articles related to the CO₂ meter that I have published over the years (since the year 2017 when I published the first version meter).
In these articles you can find a lot of information to expand the meter with new functionalities, learn more, etc.