Hi
Here is the schematic on which I am working:

Without the sensor, the circuit works fine with direct 220VAC. However, when sensor is introduced the opto-coupler remains ON even when the sensor is off.
Diodes 1N4007
4 x 150k resistors in parallel so resistor value is 37k.
Coupler is PC817.
Sensor is 2-wire inductive. I also tried photo sensor with same results.
(Please ignore the GND sign in the schematic).
Here is the schematic on which I am working:

Without the sensor, the circuit works fine with direct 220VAC. However, when sensor is introduced the opto-coupler remains ON even when the sensor is off.
Diodes 1N4007
4 x 150k resistors in parallel so resistor value is 37k.
Coupler is PC817.
Sensor is 2-wire inductive. I also tried photo sensor with same results.
(Please ignore the GND sign in the schematic).







