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?