https://tutorials-raspberrypi.com/raspberry-pi-door-window-sensor-with-reed-relais/