Now that we have written the program that displays the weather data from the sensor, let's display the data on our LCD. You can compile and flash our program into the ESP32 board with the following command:
$ make flash
If this is successful, you should see temperature and humidity values on the LCD display. You can see my program's output in Figure 2-17:
We have successfully used the ESP32 board to create a weather monitoring system.