{"repo":"sighmon/co2_sensor_scd4x_esp32_http_server","free":true,"listed":false,"github":"https://github.com/sighmon/co2_sensor_scd4x_esp32_http_server","clone":"git clone https://github.com/sighmon/co2_sensor_scd4x_esp32_http_server.git","description":"An Arduino sketch for the Adafruit SCD4X and SCD-30 CO2 sensor running on an ESP32 with an http server.","language":"C++","stars":19,"topics":["co2","esp32","http-server","prometheus","sensor","scd-30","scd-40","scd-41"],"license":"MIT","category":"networking-infra","readme_excerpt":"Adafruit SCD4X/SCD30 CO2 sensor for ESP32 An Arduino sketch for the Adafruit SCD4X CO2 sensor and Adafruit SCD-30 CO2 sensor running on an ESP32 with an http server returning Prometheus compatible responses, and sensor readings sent via Bluetooth BLE. Related software: Prometheus/Grafana Docker containers for Raspberry Pi Apple HomeKit accessory for the SCD4x/SCD-30 CO2 sensor iOS/macOS BLE CO2 sensor Sensirion iOS app Hardware Adafruit SCD-41 CO2 sensor Adafruit ESP32-C3 QT Py dev board Adafruit battery charger for QT Py Adafruit Qwiic cable Nokia BP-6MT 3.7V battery (any 3.7 - 4.2V battery will work) Setup WiFi : Copy the secrets file: cp secrets.tmpl.h secrets.h Fill in your SSID and password in secrets.h Note : the ESP32-C3 only connects to a 2.4 GHz network Arduino : Download the latest version of Arduino from https://www.arduino.cc From Tools Manage Libraries... add the library: Sensirion I2C SCD4x If you have an SCD-30 CO2 sensor, add the library: Adafruit SCD30 Uncomment either #define USESCD30 or #define USESCD4X Install the Sensirion BLE library: cd /Documents/Arduino/library and then git clone https://github.com/Sensirion/arduino-ble-gadget.git Install the NimBLE library: cd /Documents/Arduino/library and then git clone https://github.com/h2zero/NimBLE-Arduino.git Install the Adafruit boards following their instructions Connect your ESP32 via USB Now try Upload to send the code to your ESP32 Note : As of 9th April 2024 this was the dependency versions that compiled","default_branch":null,"files":null,"tree":[],"storefront":"/r/sighmon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sighmon/co2_sensor_scd4x_esp32_http_server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}