This circuit was obtained in the publication 101 Electronics Projects of 1979. The circuit can be assembled easily, since all the components are common. When the LED light that falls on the phototransistor is established, by removing an object that exists between them, the relay closes its contacts. The relay can be 6 or 12 V depending on the supply, the phototransistor is any type and Q2 a BC548.