Email or username:

Password:

Forgot your password?
Alexander 😷

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

Grafana and HTML dashboards included.

#DIY #CO2 #CO2Monitoring #CleanAir #CovidIsNotOver

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.
7 comments
Wolfgang Tremmel

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

Alexander 😷

@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

@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

@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

Andrey Esin
@alxndr hey! Did you print this case on 3d-printer?
Go Up