@crisant Right away I don't recommend the blank Arduino IDE "New Sketch" without something for it to do, such as a delay(100);.
People have found that they cannot connect afterwards because of the short scan time not allowing any other activity!
I made this sketch to test that the board is working by printing to the serial port:
I went to their GitHub repository for uploading instructions and they are different than a normal ESP32
https://github.com/LilyGO/ESP32-Paxcounter#uploading
so try following their ESP32 with LORA instructions
Also when you pull down the board type menu in Arduino IDE where you select your board type, there is also the available ports.
Check to see that the USBmodem is stable.
Sometimes when I get the Failed Uploading error I have to reboot my computer. This has been a "bug" I have faced for years.
-Terry