In this circuit, a jack with a diode activates a relay in a security system. The circuit is from a Radio Electronics magazine. The relay is rated according to the transformer voltage.