https://circuitdiagrams.in/esp8266-wifi-smart-plug/
ESP8266 WiFi Smart Plug Using NodeMCU