Control AC load with microcontroller. TRIAC behaviour problem
You could try building an ZCD circuit using Transistor. CE configuration. You need to size your AC input voltage to something reasonable using Voltage Divider. 



Choose the voltage divider resistors and keep in mind the power dissipation too. Mostly 1/4W resistors will be sufficient.

Triggering Quadrant of Triac