Don't have Telegram yet? Try it now!
https://www.dobitaobyte.com.br/polling-e-interrupcao-com-esp32-usando-um-reed-switch/
Polling e interrupção com ESP32 usando um reed switch