Software to read, display, and upload K20 Co2 sensor data to Google Sheets.
This software was built using the Vs Code extension PlatformIO. With both installed you should be able to upload it to your ESP8266 fairly easily.
By default, this software will just display the value of the K30 sensor on the Neopixel matrix, but uploading your data to Google Sheets can be achieved with a little configuration.
- Modify the
ssid
andpassword
for your WiFi network insrc/main.cpp
. - Follow these setup steps for Google Sheets substituting the google script for the one from this repo (
google-scripts/date-and-value.gs
). - When you've got your scripts deployment ID you can then paste this into the
scriptId
property insrc/main.cpp
. - Use the alternative
ledCo2Service
which takes these additional arguments and uploads your data.
(The google script we're using has a small modification to save only one value and adds a timestamp to each entry.)