Hatch sensor + 10m cable

Using a sensor with a detachable magnet attached to a door or window, an alarm is triggered if the two pieces are pulled apart by the hatch opening.