In the figure we show how to activate a relay from the output of a common operational amplifier when its output goes to low level. The voltage Vcc depends on the relay and the ground of this stage must be common to the circuit ground with the operational. This circuit is for relays up to 100mA. The circuit is from a book by Newton C. Braga.