Summary
I'm working on a wrapper of multiples Air quality sensors, this wrapper has sensors and units with dynamically registers, for this reason it's important that the values when the sensor doesn't exists more going to reset.
steps to replicate the issue
- disconnect the sensor
uint16_t tCO2 = scd30.getCO2(); persist