I am trying to make a AC Mains detection circuit with ESD protection. The AC switch is located 30 meters away from the circuit board.
Of the two circuits, which is better for ESD protection & mains isolation? In Schematic One, is connecting the other end of TVS diode to AC Neutral correct?
Please suggest if there need to be any modification.
TVS Diode: TPD1E10B066 http://www.ti.com/lit/ds/sllseb1d/sllseb1d.pdf
EDIT: Let me explain the scenario in detail. There are quite a lot of switches to be monitored. Inductive loads are also there. All the switches have very long wires & I am concerned about the excess energy that reach the optocoupler during switching, spikes in the line or by lightning. What is the best way to protect from such occurrences?