Problem installing dht library

Hello. My nerves are messed up. No matter what I do, it doesn't compile. God help me. This is the picture of the message that Arduino gives.

Welcome to the forum

image
Are you sure that the DHT library that you are trying to use is compatible with the ESP8266 ?

Hmm. Using arduino-cli, the DHTtester example from that library compiled just fine for me with 'NodeMCU 1.0 (ESP-12E Module)' selected.

First of all, thank you for taking the time to answer me. Yes, it is a valid library, and I have already worked with this library and coded a lot. I have encountered this problem since I installed Arduino 2.3.2. I installed it again, but it is still not fixed. I also used the previous versions and it still has a problem. I don't know what to do. Believe me, I have reached the point where I want to cover and burn everything

You have installed a DHT library for AVR, according to your screenshot. Below the first library we can see a "DHT library for ESPx" which is not installed.

This was the reason for @UKHeliBob question - are you sure you are using the correct library? If your board is NodeMCU - why not to use "DHT for ESP" library?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.