6 ms·
I like that CO2 detector. I wonder if I could build one cheaply as a DIY project by buying and attaching the sensor to Raspberry Pi?
by dowonseo 24d ago
I like that CO2 detector. I wonder if I could build one cheaply as a DIY project by buying and attaching the sensor to Raspberry Pi?
- pimlottc 24d agoCO2 sensors are not all created equal. The price of a good one is a large chunk of the cost of the device.
- vladak 24d agoI have couple of true (and therefore more expensive) CO2 sensors around the apartment, all of them Adafruit SCD-40, each connected to its own ESP32 which broadcasts the metrics (including temperature and humidity) to MQTT broker which feeds into Prometheus. A Grafana instance running on a Raspberry Pi can then post an alert which goes into PagerDuty and also to a small speaker connected to the RPi to play a distinct tune when the CO2 threshold is breached in one of the rooms. Then on my work desk (not in a shed, unfortunately) I have a separate ESP32 with a display to provide visual-only alerting there which taps into MQTT to get the metrics (see https://github.com/vladak/workmon https://github.com/vladak/workmon).