The detector is intended to sense and signal to another circuit that an appliance is connected to the mains voltage. For this purpose, an optocoupler, IC1 in the circuit, is used. The light-emitting ...