monitorWindow
Simple python code to continuously monitoring the status of a magnet switch to determine whether a window (door) is open or closed.
Sensor is connected to Ground and GPIO23.
RPI code to monitor window state via magnetic sensors
Simple python code to continuously monitoring the status of a magnet switch to determine whether a window (door) is open or closed.
Sensor is connected to Ground and GPIO23.
RPI code to monitor window state via magnetic sensors