This is a simple Go project which uses a magnetic switch connected to a Raspberry Pi's GPIO ports, and sends a message via Pushover when the switch is connected or disconnected. In my case, I use this to make sure the front door doesn't get left open (and my cat doesn't run away).