Temperature and humidity with display dont know what wrong with code

it tells me that DHT does not name a type

// include the library code:
#include <LiquidCrystal.h>
//#include “DHT.h”

// set the DHT Pin
#define DHTPIN 8

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE); problems right here

void setup() {
// set up the LCD’s number of columns and rows:
lcd.begin(16, 2);
dht.begin();

// Print a message to the LCD.
lcd.print(“Temp: Humidity:”);
}

void loop() {
delay(500);
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// read humidity
float h = dht.readHumidity();
//read temperature in Fahrenheit
float f = dht.readTemperature(true);

if (isnan(h) || isnan(f)) {
lcd.print(“ERROR”);
return;
}

lcd.print(f);
lcd.setCursor(7,1);
lcd.print(h);
}

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn’t show the posting toolbar then you can just manually add the code tags:
[code]``[color=blue]// your code is here[/color]``[/code]
Using code tags and other important information is explained in the How to use this forum post. Please read it.

The DHT type is defined in the DHT library. If you comment out the #include directive for that library then of course you’re going to get an error.

// include the library code:
#include <LiquidCrystal.h>
#include “DHT.h”

// set the DHT Pin
#define DHTPIN 8

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);

void setup() {
// set up the LCD’s number of columns and rows:
lcd.begin(16, 2);
dht.begin();

// Print a message to the LCD.
lcd.print(“Temp: Humidity:”);
}

void loop() {
delay(500);
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// read humidity
float h = dht.readHumidity();
//read temperature in Fahrenheit
float f = dht.readTemperature(true);

if (isnan(h) || isnan(f)) {
lcd.print(“ERROR”);
return;
}

lcd.print(f);
lcd.setCursor(7,1);
lcd.print(h);
}

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn’t show the posting toolbar then you can just manually add the code tags:
[code]``[color=blue]// your code is here[/color]``[/code]
Using code tags and other important information is explained in the How to use this forum post. Please read it.

Please describe the problem you’re having.

@faris_khan, do not cross-post. Threads merged.