Then wire them up through a pair of limit switches and a relay so the circuit will latch until broken at the far end.

Rich