I am planning to control the intensity of a bulb according to the input from Light sensor LDR. I had done a lot of search. But sill in confusion about how to detect Zero crossing. I found a link on the Arduino. But there is circuit diagram. any one if done successfully , please share it.