compilation error

Hi all,

I’m trying to send a temperature read from DHT11 sensor and with this code below I’m having the following error:

DHTTest.ino:4:17: fatal error: DHT.h: No such file or directory
compilation terminated.

I have installed in the arduino library folder a DHT library.

Does anyone help me on how to solve this error ?

Thanks in advance.

This is the code:

// Program: Sensor DHT11 - Send data over bluetooth


#include "DHT.h"

#define dht_pin A5 

#define DHTTYPE DHT11

DHT dht(dht_pin, DHTTYPE);

void setup()
{
 Serial.begin(9600);
 // wait one second before read sensor
 delay(1000);
 dht.begin();
}

void loop()
{
 float h = dht.readHumidity();
 float t = dht.readTemperature();

 // show values
 Serial.print("Temp. = ");
 Serial.print(t);
 Serial.print(" C ");
 Serial.print("Um. = ");
 Serial.print(h);
 Serial.println(" % ");

 // wait two seconds to the next read
 delay(2000);
}

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.

You must restart all instances of the IDE after installing a new library (depending on which version you use)

(Adafruit's library?)