A Python-based IoT program that determines whether a door is OPEN or CLOSED, and estimates the percentage it is open, based on sensor data and will send an email to a predefined user if a door has been open for longer than 5 minutes.