diff --git a/thermo_sensor/main/thermo_sensor.c b/thermo_sensor/main/thermo_sensor.c index 0986269..e4a3984 100644 --- a/thermo_sensor/main/thermo_sensor.c +++ b/thermo_sensor/main/thermo_sensor.c @@ -18,6 +18,8 @@ static const char *TAG = "thermo_sensor"; bmp280_t dev_bmp_280; void main_loop(void *pvParameters) { + // Wait 1s, to avoid corrupted first sensor readout + vTaskDelay(pdMS_TO_TICKS(1000)); while (1) { ygg_bmp280_read_sensor(&dev_bmp_280); ygg_send_sensor_readouts(SENSOR_NAME,