Using NPN transistors, this circuit activates a voltage relay according to the power supply. The circuit was found in the October 1993 issue of Radio Electronics magazine.