Follow the instructions provided in this link
If you'll follow them correctly you can skip this part
Python 3 is mandatory
Install the pyserial Python module through pip:
sudo apt install python-pip
pip install --user pyserial
Check provided instructions for reference and troubleshooting tips
Set the user in the correct group with the code via terminal:
sudo usermod -aG uucp [username] #for Arch
If you're running Debian-like OS you will be prompted to be added automatically. Click add
Open the IDE preferences, from the File menu or by using the Ctrl + , hotkey
Paste the SDK Espressif json URL as shown:
https://dl.espressif.com/dl/package_esp32_index.json
Go to Tools > Board > Boards Manager...
We have to install "esp32"
From Tools > Board select "ESP32 Dev Module"
Then we connect the board,
from Tools > Port we select the port of the board.
It should be named COM1 or similar.
Arduino IDE comes included with several libraries out of the box to manage all of the official board capabilities,but it is possible to install more via the Library Manager
Navigate to Sketch → #include library → Library Manager...
or use the Ctrl + Shift + I hotkey
Search and install the following library: