4#include <Adafruit_Sensor.h>
5#include <SensirionI2cScd4x.h>
33 SensirionI2cScd4x
scd;
Central location for pinout and config defines.
int attempt_number
Definition Device.h:19
A class to interface with the Sensirion SCD40 sensor for CO2 data collection.
Definition SCD40Sensor.h:31
String readData() override
Reads sensor data and returns it in CSV format.
Definition SCD40Sensor.cpp:72
void readDataPacket(uint8_t *&packet) override
Reads sensor data and appends it to the packet byte array.
Definition SCD40Sensor.cpp:97
bool verify() override
Verifies the connection and readiness of the SCD40 sensor.
Definition SCD40Sensor.cpp:38
String decodeToCSV(uint8_t *&packet) override
Decodes the packet data and returns it in CSV format.
Definition SCD40Sensor.cpp:129
SensirionI2cScd4x scd
Definition SCD40Sensor.h:33
TwoWire * i2c_bus
Definition SCD40Sensor.h:34
Parent class for sensor objects.
Definition Sensor.h:13
unsigned long minimum_period
Definition Sensor.h:15