Using the ESP8266 module to Restart Modem or Router Automatic. When internet connection loss. the attached program select for "Builtin LED" or "Serial Monitor" to show status. Step 1: Parts List ESP8266 ESP-01 1 Channel 5V Relay Module 2N2222 NPN transistor 1k resistor Step 2: Wiring Step 3: Code ** Change "ssid" and "password" to