Door and window sensors are small devices that are installed on doors or windows to detect when they are opened or closed. They consist of two parts: a magnet ...