DHT library issue

Why is it requesting me for the “Adafruit_Sensor.h library” if I am not using this library on the sketch?

Many thanks

Don’t post screenshots of text! That is very unhelpful. When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar). It is almost never appropriate to post screenshots but in some cases it is helpful to post images. You should attach and embed the image following these instructions:

Tonibco:
Why is it requesting me for the “Adafruit_Sensor.h library” if I am not using this library on the sketch?

Read the error message. The DHT library includes it.

From https://github.com/adafruit/DHT-sensor-library/blob/master/README.md:

You must have the following Arduino libraries installed to use this class:

Adafruit Unified Sensor Library

Why is it requesting me for the “Adafruit_Sensor.h library” if I am not using this library on the sketch?

In other words you are not specifically using the Adafruit Sensor library but you are using the DHT library. It is the DHT library that is using the Adafruit Sensor library, hence you must make it available.

Don