error msg DHT

pls help me, DHT not uploading the board

I get erro msg

In file included from
C:\Users\Krishan\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:15:0:

C:\Users\Krishan\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:36:10: fatal error: Adafruit_Sensor.h: No such file or directory

#include <Adafruit_Sensor.h>

^~~~~~~~~~~~~~~~~~~

compilation terminated.

exit status 1
Error compiling for board Arduino Uno.)

:slight_smile: this is my cord

//Libraries
#include <DHT.h>;

//Constants
#define DHTPIN 7 // what pin we’re connected to
#define DHTTYPE DHT22 // DHT 22 (AM2302)
DHT dht(DHTPIN, DHTTYPE); //// Initialize DHT sensor for normal 16mhz Arduino

/
#include <Servo.h>

/* How to use the DHT-22 sensor with Arduino uno
2 Temperature and humidity sensor
3*/
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards

int pos = 0; // variable to store the servo position
//Variables
int chk;
float hum; //Stores humidity value
float temp; //Stores temperature value
float soil;
float ldr;
float LDR_Pin = A0;
void setup()
{
Serial.begin(9600);
dht.begin();
myservo.attach(9); // attaches the servo on pin 9 to the servo obje
pinMode(11,OUTPUT);
pinMode(12,OUTPUT);
pinMode(A3,INPUT);
pinMode(10,OUTPUT);
pinMode(9,OUTPUT);
}
void loop()
{
delay(500);
//Read data and store it to variables hum and temp
hum = dht.readHumidity();
temp= dht.readTemperature();
soil= analogRead(A3);
int LDRReading = analogRead(LDR_Pin);

//Print temp and humidity values to serial monitor
Serial.print(“Humidity: “);
Serial.print(hum);
Serial.print(” %, Temp: “);
Serial.print(temp);
Serial.println(” Celsius”);
Serial.print(soil);
Serial.println(" moist");
delay(1000); //Delay 2 sec.
float soilper = soil/1025*100;
Serial.println(soilper);
Serial.println(" persentage");
Serial.println("ldr = ");

Serial.println(LDRReading);

if (hum >= 55){
digitalWrite(12,HIGH);
}
else{
digitalWrite(12,LOW);
}
if (temp >= 25.70){
for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
myservo.write(90); // tell servo to go to position in variable ‘pos’
delay(15); // waits 15ms for the servo to reach the position
}
}
else{
for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
myservo.write(0); // tell servo to go to position in variable ‘pos’
delay(15); // waits 15ms for the servo to reach the position
}
}

if (soilper>=50){
digitalWrite(10,HIGH);

}
else
{
digitalWrite(10,LOW);
}
if (LDRReading >= 900){
digitalWrite(6,HIGH);
}
else{
digitalWrite(6,LOW);
}
}

You need to install the libraries.
Use the library manager in the IDE

You need to post code in code tags