This circuit was found in an internet documentation. The relay must have voltage according to the supply.