Quote Originally Posted by dhouston
If the PIC you are using has clamping diodes on the inputs, all you need is a current limiting resistor in each circuit. There is a Microchip app note that covers this.
This App? Interfacing to AC Power Lines

Norm