The circuit we showed was obtained from our publication on relays and makes use of any phototransistor as a sensor. The relay must have a trigger current of a maximum of 20 mA and the supply can be from 5 to 12 V depending on the relay used. The diode is for general use and the resistor can be changed for better circuit performance.
