Skip to content

How to send Sensair S8 CO2 sensor readings to InfluxDB with an esp8266 devboard

License

Notifications You must be signed in to change notification settings

HenrysCat/Sensair-S8-CO2-readings-InfluxDB-esp8266

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sensair-S8-CO2-readings-InfluxDB-esp8266

How to send Sensair S8 CO2 sensor readings to InfluxDB with an esp8266 devboard

install this library in ArduinoIDE first

https://github.com/jcomas/S8_UART

Now write the code to your esp device with Arduino IDE, this will send readings every 60 seconds, you can change this by editing the line 'Serial.println("Wait 60s"); delay(60000);;' to whatever you want.

The Sensair S8 is factory set to default to 400ppm CO2, as the current world wide level is around 420ppm I have added 20 in this line 'sensor_db.addField("co2_value", sensor_s8.co2 + 20);' you can of course change this if you wish.

Below is a screenshot from my InfluxDB dashboard.

alt text

About

How to send Sensair S8 CO2 sensor readings to InfluxDB with an esp8266 devboard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published