DHT LIBRARY ERROR

How to solution this …

ERRO:

sketch\LCB_SEM_FORO.ino.cpp.o: In function `loop’:

C:\Users\Marcelo\Documents\Arduino\Meus PRG ARDUINO\LCB_SEM_FORO/LCB_SEM_FORO.ino:66: undefined reference to `dht::read11(unsigned char)’

collect2.exe: error: ld returned 1 exit status

Foram encontradas múltiplas bibliotecas para “dht.h”
Usado: C:\Users\Marcelo\Documents\Arduino\libraries\DHTlib
exit status 1
Erro compilando para a placa Arduino Due (Programming Port)

SKETCH

// Incluir Biblioteca
#include <dht.h>

// Mapeamento de hardware
#define dht_pin 2
#define BUZZER 3
#define RELE1 4
#define RELE2 5
#define RELE3 6
int LEDVERMELHO = 11;
int LEDVERDE = 10;
int LEDAZUL = 9;

// Declaração de objeto
dht my_dht;

// Variáveis globais
float temperatura = 0x00,
umidade = 0x00;
String PACKET, COMANDO;
unsigned long T1=0;

void setup() {
pinMode(RELE1,OUTPUT);
pinMode(RELE2,OUTPUT);
pinMode(RELE3,OUTPUT);
pinMode(LEDVERMELHO,OUTPUT);
pinMode(LEDVERDE,OUTPUT);
pinMode(LEDAZUL,OUTPUT);
digitalWrite(RELE1,HIGH);
analogWrite(LEDVERMELHO,255);
analogWrite(LEDVERDE,0);
analogWrite(LEDAZUL,0);
delay(250);
digitalWrite(RELE1,LOW);
delay(250);
digitalWrite(RELE2,HIGH);
analogWrite(LEDVERMELHO,255);
analogWrite(LEDVERDE,255);
analogWrite(LEDAZUL,0);
delay(250);
digitalWrite(RELE2,LOW);
delay(250);
digitalWrite(RELE3,HIGH);
analogWrite(LEDVERMELHO,0);
analogWrite(LEDVERDE,255);
analogWrite(LEDAZUL,0);
delay(250);
digitalWrite(RELE3,LOW);
analogWrite(LEDVERMELHO,0);
analogWrite(LEDVERDE,0);
analogWrite(LEDAZUL,0);
pinMode(BUZZER,OUTPUT);
digitalWrite(BUZZER,HIGH);
delay(250);
digitalWrite(BUZZER,LOW);
delay(250);
digitalWrite(BUZZER,HIGH);
delay(250);
digitalWrite(BUZZER,LOW);
}

void loop() {
if (millis()-T1 > 30000)
{
my_dht.read11(dht_pin);
temperatura=my_dht.temperature;
umidade=my_dht.humidity;
T1=millis();
}
while (Serial.available())
{
char PACKET=Serial.read();
if (char(PACKET) != ‘\r’) // Carriage return
{
COMANDO+=char(PACKET);
if (COMANDO == “OFF”)
{
digitalWrite(RELE1,LOW);
digitalWrite(RELE2,LOW);
digitalWrite(RELE3,LOW);
}
if (COMANDO == “RED”)
{
digitalWrite(RELE1,HIGH);
digitalWrite(RELE2,LOW);
digitalWrite(RELE3,LOW);
analogWrite(LEDVERMELHO,255);
analogWrite(LEDVERDE,0);
analogWrite(LEDAZUL,0);
}
if (COMANDO == “YELLOW”)
{
digitalWrite(RELE1,LOW);
digitalWrite(RELE2,HIGH);
digitalWrite(RELE3,LOW);
analogWrite(LEDVERMELHO,255);
analogWrite(LEDVERDE,255);
analogWrite(LEDAZUL,0);
}
if (COMANDO == “GREEN”)
{
digitalWrite(RELE1,LOW);
digitalWrite(RELE2,LOW);
digitalWrite(RELE3,HIGH);
analogWrite(LEDVERMELHO,0);
analogWrite(LEDVERDE,255);
analogWrite(LEDAZUL,0);
}
}
else
{
COMANDO="";
}
}
}

You have multiple libraries containing 'dht.h' and the one the linker chose does not have a 'read11()' function. I think you will have to delete or re-name one of the DHT libraries to force the linker to use the right one.

When you change a library (delete or rename), run "Tools->Manage Libraries..." to get the IDE to re-scan your 'libraries' directory.