I’m not sure the best way to do this, and is not working for my as it will lock the program on when its asleep not sure how to make it works right… Im trying to monitor when a door open and closes with a raspberry Pi if there door is open for more than x time send some sort