Too Long; Didn't Read
Part 2: Use AWS Device Shadow to Control ESP32 with Arduino Code. Use AWS MQTT Client to activate Device Shadow service and control ESP32 inbuilt led led. Use the shadow to get and set the state of a device over the device, regardless of whether the device is connected to the Internet. The shadow service maintains a shadow for each device you connect to AWS IoT. The following series split into four parts (refer below) with very simple and clear instructions to provision a home automation system.