hhmx.de

Alexander 😷

Föderation EN Mi 06.03.2024 23:20:58

How to build a headless CO2 sensor that is cheap and accurate: codeberg.org/alxndr42/co2-sens

Grafana and HTML dashboards included.

Photo of a D1 mini board connected to an SCD40 CO2 sensor module, installed in a 3D-printed case, and powered by USB-C cable.

Screenshot of a Grafana dashboard, showing line charts for CO2, temperature and humidity, for multiple sensors.

Screenshot of the HTML dashboard, showing four panels containing a location name and PPM level for each sensor.

(Medien: 3)

Rob  :homeassistant:

Föderation NL Sa 13.04.2024 16:29:49

@heesdaman @alxndr @vosje62 Ik ga eens kijken. 😋

Wolfgang Tremmel

Föderation EN Di 31.12.2024 16:11:47

@alxndr does the Sensirion sensor really measure CO2? Usually the cheaper ones measure something and estimate CO2

Alexander 😷

Föderation EN Di 31.12.2024 16:25:41

@wtremmel It does, here's the data sheet: sensirion.com/media/documents/

I also own an Aranet4, and in my comparison, the SCD40 was usually within 50 ppm of the Aranet4. Definitely accurate enough to help breathing humans with their risk assessment.

Chris Adams

Föderation EN Di 31.12.2024 17:52:00

@alxndr Ahoy, thank you for sharing this!

Can I check I understand what's going on here?

Once flashed, this little box basically sets up the sensor to expose values using a Prometheus exporter, to allow another machine on the same wifi network to scrape regularly, and then chart in Grafana.

It's a bit like how might you monitor a set of virtual machines in a web application, right?

Codeberg.org

Föderation EN Di 31.12.2024 18:39:43

@alxndr Gave this a boost, as I've been looking for a project like this myself and really liked the way you documented everything in the README. Wishing you a happy new year and sending my thanks for publishing this! ~n