Use a Sparkfun ESP8266 Thing Dev and HC-SR04 to create a monitoring device that can make sure your door stays closed while you’re away.
Have you ever left your house and wondered “Will someone try to break in while I’m away?” This project will alert you if someone opens a door by using ultrasonic distance measuring.”

Link