Error Compiling for Board

Hi, I am new to Arduino
I have just tried to verify a sketch and I got this message:

Arduino: 1.6.12 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\curti\Documents\Arduino\temp\temp.ino:1:17: fatal error: DHT.h: No such file or directory

#include "DHT.h"

^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

Here is the Sketch, it is from here: Arduino LCD Thermostat - Arduino Project Hub

#include "DHT.h"
#include "LiquidCrystal.h"

#define DHTPIN 9
#define DHTTYPE DHT11

DHT dht(DHTPIN, DHTTYPE);

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
// put your setup code here, to run once:
dht.begin();
lcd.begin(16,2);
lcd.print("The current temp");
lcd.setCursor(0,1);
lcd.print("is: ");
float f = dht.readTemperature(true);
lcd.setCursor(5,1);
lcd.print(f);
lcd.print(" F");
}

void loop() {
delay(1000605);
// put your main code here, to run repeatedly:
float f = dht.readTemperature(true);
lcd.setCursor(5,1);
lcd.print(f);
lcd.print(" F");
}

Could you please advise what I am doing wrong?

Many Thanks

Where on your PC is the DTH.h file ?

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom. :slight_smile:

fatal error: DHT.h: No such file or directory

Looks like you haven't installed that library.

Ok, I'll download it now, Thanks!

I have installed DHT.h now I get this:

Arduino: 1.6.12 (Windows 10), Board: "Arduino/Genuino Uno"

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

C:\Users\curti\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory

 #include <Adafruit_Sensor.h>

                             ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

Do you have Adafruit_Sensor.h on your PC ?

Yes, I have Adafruit DHT Unified.

NoobCyber:
Yes, I have Adafruit DHT Unified.

Sorry, but I don't know what that means.