Download the ESP32 package from espressif. This is a good tutorial for that:
https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/
I selected the ESP32 Dev Module as my board.
Make sure to select the correct port where your ESP32 is connected.
Run a quick light blink example to make sure that everything works. You can do so by running the code https://github.com/mahrukhtauseef/Intercom/blob/main/Blink_Example/Blink_Example.ino
For setting up the schematics, I used the pin labels on the back of the ESP-32 board.
Back side of the ESP32 with pin labels
This is how I setup the board:
Circuit Schematics
Circuit
Code in action