WARNING: Please be careful when dealing with high voltage of mains electric. You may risk yourself to get serious injury due to electric shock or worse losing your life. I will not responsible to your safety or loss. If you are not sure what you are doing, please ask someone with experience to do it for you.
This is just an experiment to control an electric led lamp using a 5v relay with 220v output from the signal sending from my laptop through a web server hosted on an ESP8266 microcontroller.
It is recommended to seal the circuit in a close box and not expose the connectors. I am handling the dangerous part with insulation of plastic gloves and wearing shoes.