ESP32 no contact dual channel voltage detector

Use AC-input optocouplers, one for each leg.

I have the same question about how two legs of a line manage to come up at different times. In what part of the world does that happen?