After the ESP32 development environment was set up. Now we can run some sample code. There are a lot of sample code in Arduino IDE.
![](https://otgui.com/wp-content/uploads/2023/09/image-1.png)
The Arduino IDE will open the sample code.
![](https://otgui.com/wp-content/uploads/2023/09/image-2-1024x750.png)
Change the ssid and password to connect with Wifi.
Then you need select port. After connected the ESP32 to PC, it will show up in Port
![](https://otgui.com/wp-content/uploads/2023/09/image-5-1024x659.png)
![](https://otgui.com/wp-content/uploads/2023/09/image-3.png)
Click the upload button to run the code in ESP32.
![](https://otgui.com/wp-content/uploads/2023/09/image-6-1024x363.png)
after it done, it will show something like this.
Open “Serial Monitor”
The Arduino IDE Serial Monitor is a built-in tool in the Arduino development environment that allows you to communicate with and monitor the output of an Arduino board or other microcontroller over a serial connection. It’s a valuable tool for debugging, testing, and interacting with your Arduino projects.
![](https://otgui.com/wp-content/uploads/2023/09/image-4-1024x645.png)
it will show ip address,
![](https://otgui.com/wp-content/uploads/2023/09/image-7.png)
open a browser and type the ip address there
![](https://otgui.com/wp-content/uploads/2023/09/image-8.png)
Nice