Mount the magnetic switch on the door or window frame.

And connect the end of the cable to the transmitter External trigger port.