“In this tutorial you are going to learn how to build your own light switch and fan dimmer in just one board with the microcontroller and WiFi module ESP8266.
This is a great project for IoT.
Cautions:
This circuit handles AC main voltages, so be careful.
Extra: I posted here a video tutorial that shows you the whole process.”