Simple display of temp and humidity using CYD and AHT10 sensor Simple code to display temperature and humidity on a 2USB CYD ESP32-2432S028. SDA must connect to GPIO 27 SCL must connect to GPIO 22 Both on connector nearest SD card slot. Make sure to set up TFT_espi User_Setup to be correct for your board
For much more detailed information and help for the CYD boards see_ https://github.com/witnessmenow/ESP32-Cheap-Yellow-Display.
Also here is a link to the correct CYD_2usb User_Setup for the TFT_espi library for the later version of the CYD https://github.com/witnessmenow/ESP32-Cheap-Yellow-Display/blob/main/DisplayConfig/CYD2USB/User_Setup.h