DIY: Control a AC light using ESP32 dev board

Control a led light using ESP32 # Recently I just bought a new ESP32 dev board to tinker with its wireless capabilities. After setting it up in the Arduino IDE and running into some basics I tried building something that is actually useful.
How about controlling a device remotely, maybe switching off lights in my room without getting off my bed. That sounds cool right.
After a liitle bit of googling, I found this pretty easy to setup.