Door open alert

Does anyone know of a way to send a notification after a door has been left open for too long? Right now I can only get a trigger notification if the door is opened.

which device are you using?