AC detection for microcontroller
If you just want to detect if VAC is there or not, i can give you this example (see image below). We are using it to determine if some external relays are malfunctioning. This may point you in the right direction and gives some part examples.