The door/window contact provides information to the Smart-Home Control System to inform if a door or a window is opened or closed. The device consists of a magnet sensor, which is installed on the moving part of the window or the door, and the main device, which is installed on the static part.