How to controll A.C. 230V fan speed with arduino..??

What if I do this..??

I found another circuit where they are doing it in this way..

Another similar circuit here