- In your Arduino IDE, go to File>Preferences
- Enter https://dl.espressif.com/dl/package_esp32_index.json into the "Additional Board Manager URLs". Then, click the “OK” button
- Open the Boards Manager. Go to Tools>Board>Boards Manager
- Search for ESP32 and press install button for the "ESP32 by Espressif Systems"
- Select your Board in Tools>Board "ESP32 Dev Module"
- Select the Port. Go to Tools>Port
- Download libraries (.zip): PubSubClient, ArduinoJson
- In your Arduino IDE, go to Sketch>Include Library>Add .ZIP Library and include previously downloaded libraries