Maybe one additional note: I might be mistaken depending on the implementation of delay on the ESP32, but the usage of the plain delay(period) in the function Bsec::delay_ms(uint32_t period) in bsec.cpp might be wasting valuable power, as the delay is 2 seconds in the example. If no background tasks are running like Wifi, it might better be replaced by: esp_sleep_enable_timer_wakeup(period * 1000); esp_light_sleep_start();
... View more