A Door & Window Sensor consists of 2 parts: a sensor and a magnet. For the sensor to recognize a door or window opening or closing the dots on the sides of the sensor and magnet have to align. When the magnet is moved away from the sensor, a signal is sent to the Hub showing the door or window being opened. When the magnet realigns with the sensor another signal is sent to the Hub showing the door or window is closed.