How to trigger an alarm with an ESP32 timer. Example of Arduino code to take measurements at regular intervals with a BME280