GitHub - khoih-prog/ESP32_S2_TimerInterrupt: This library enables you to use Interrupt from Hardware Timers on an ESP32-S2-based board. These ESP32-S2 Hardware Timers, using Interrupt, still work even if other functions are blocking. Moreover,
ESP32 with PIR Motion Sensor using Interrupts and Timers | Random Nerd Tutorials
ESP32 Timers & Timer Interrupt Tutorial
ESP32 Interrupts and Timers with PIR Sensor using Arduino IDE