6 ms·
Using several Raspberry Pis to monitor CO2 levels in my house. Each Raspberry Pi has a CO2 sensor - wrote a little Python script to retrieve data from sensor an
by 2sk21 7y ago
Using several Raspberry Pis to monitor CO2 levels in my house. Each Raspberry Pi has a CO2 sensor - wrote a little Python script to retrieve data from sensor and upload it to a server Which is also a Raspberry Pi.
- jdsnape 7y agoWhat sensor did you use? All the ones I’ve seen tend to be pretty expensive
- 2sk21 7y agoYes - the sensors are a bit expensive at about US$ 90 apiece but as I explained in another comment, I think that it has paid for itself
- anfractuosity 7y agoYou can get cheap NDIR based sensors from aliexpress (around $20) such as MH-Z14A, which I've used with a Pi, via the UART interface. I just hooked it up to the 5V line on the Pi pin header and then used the Pis UART lines for the data, as that runs at 3.3V.
- mef51 7y agowhich CO2 sensor do you use?
- inson 7y agoI am also interested in your CO2 sensor. What kind of CO2 sensor?
- 2sk21 7y agoThis is the sensor that I'm using: https://www.co2meter.com/collections/desktop/products/co2mini-co2-indoor-air-quality-monitor https://www.co2meter.com/collections/desktop/products/co2min...
- inson 7y agothanks
- sparker72678 7y agoAre you running Windows on the Pi, or did you write your own software to interface with the sensor over USB?
- 2sk21 7y agoI'm running standard Raspbian on the Raspberry Pi. I modified some sample Python code I found here: https://github.com/vfilimonov/co2meter https://github.com/vfilimonov/co2meter It turned out to be quite straightforward
- preston4tw 7y agoAny reason you picked that sensor over others?
- 2sk21 7y agoSomeone had posted on HackerNews that they had good experience with this sensor. Furthermore, it appeared to be easy to use the USB interface to get the data
- DavideNL 7y agoI'm interested in this too. It would be even cooler to link these CO2 sensors into Apple's HomeKit somehow...
- spacemanmatt 7y agoI have been using Home Assistant to integrate everything. I have Google flavored, but it also has HomeKit support. https://www.home-assistant.io/components/homekit/ https://www.home-assistant.io/components/homekit/
- DavideNL 7y agoThanks for the tip! Home Assistant has a module for the "MH-Z19 CO2 Sensor" (1) which is on AliExpress for $20 (2). So i'll probably give that a try... 1) https://www.home-assistant.io/components/mhz19/ https://www.home-assistant.io/components/mhz19/ 2) https://aliexpress.com/item/1PCS-ORIGINAL-Brand-New-MH-Z19-CO2-Sensor-0-5000ppm-NEW-CK/32810419056.html https://aliexpress.com/item/1PCS-ORIGINAL-Brand-New-MH-Z19-C...
- loisaidasam 7y agoI'm also interested, although my curiosity is more about what you are doing with the data. Just storage? Some sort of charting? Graphite? Maybe some other data monitoring tool? Maybe something custom?
- 2sk21 7y agoI had a suspicion that winter-time headaches we were having might be triggered by high CO2 levels so I simply wanted to record the CO2 levels in different rooms. Thanks to the sensors, I did, in fact, find that CO2 levels were very high in our bedroom. Once I improved ventilation, things seem to have gotten better.
- orpheline 7y agoI like this! I'm already using Pi Zero's like this for temperature sensing; adding a CO2 sensor sounds like a good enhancement!
- thachnb 7y agoI think CO is more dangerous than CO2! Why not CO?
- H8crilA 7y agoCH4 is also dangerous. It's a different problem. CH4 blows up your house and is very rare. CO kills you and is very rare. CO2 buildup causes mild issues (like headaches, sleepiness) but is very common.