Using two microcontrollers you can measure more than on and off and use only one optocoupler.
If you insulate the live uC properly there is lower risk of electric shock when only using one optocoupler.
You can detect under and overvoltage, spikes and harmonics and report that over the serial link to next uC.
Pelle
