I’ve published a dedicated a DHT Troubleshooting Guide for the most common issues with the DHT sensor.
If you’re trying to read the temperature and humidity from the DHT11, DHT22, AM2302 or AM2301 sensor and you get an error message in your Serial Monitor, follow the next steps to see if you can make your sensor work.
Learn how to fix the Failed to read from DHT sensor error.
If you need further help, please post a new question here: https://rntlab.com/ask-question/
P.S. Learn more about the ESP32 or ESP8266 GPIOs below: