Every 4th byte comes back with zero time elapsed high.

Really don't know why
This commit is contained in:
2023-10-30 22:11:39 +00:00
parent 089d8a62f1
commit e139aa7e9c
3 changed files with 18 additions and 12 deletions

View File

@@ -73,6 +73,7 @@ void read_from_dht22() {
if (ret != DHT22_OK) {
dht22_handle_error(ret);
} else {
latest_datapoint.temp = dht22_temperature();
latest_datapoint.rh = dht22_relative_humidity();
ESP_LOGW(TAG, "%f & %f", latest_datapoint.temp / 10.0, latest_datapoint.rh / 10.0 );