- Install the ESP32 board files: https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/boards_manager.md
- Choose the board ESP32 Dev Module
- Install pyserial globally. (Using the --user tag doesn't work) --> sudo -H pip install pyserial
- Give permission to the port by using chmod 666 dev/ttyUSB*
- Change the upload speed to 1152000