Controlling AC devices using ATmega8
Just replace the MOC3083 with a visible LED (pin 1 is + pin 2 is -). Unless your drive circuit is very low voltage, the LED will indicate when the triac should be on.