Potresti mettere un sensore del genere
https://www.amazon.it/Tuya-Smart-Ala...14&sr=8-5&th=1

ma non so se è configuraibile con un "ritardo."