Need help detecting AC input with microcontroller

Top