With this code, you can display CO2, temperature, and humidity readings with a ESP32-2432S028 dev board (aka Cheap Yellow Display) and a SCD40/41 sensor.
Two versions of code, one is display only and the other will display and send readings to influxdb.
20ppm is added in the code as the SCD4x sensors auto calibrate to 400ppm, and atmospheric CO2 is closer to 420ppm (you can adjust as you like)
Use the cable supplied with the CYD plugged in to CN1
Black - Ground
Red - VCC
Blue - SCL
Yellow - SDA
You will need these libraries https://github.com/sparkfun/SparkFun_SCD4x_Arduino_Library and https://github.com/Bodmer/TFT_eSPI