Launch the Arduino IDE .
Enter the following code.
#include <dht.h> // add the DHTlibrary
#include <LiquidCrystal.h> // add the LCD library
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // define LCD pins
dht DHT;
#define DHT11_PIN 7
void setup() {
// initialize the lcd isplay
lcd.begin(16, 2);
}
void loop() {
int chk = DHT.read11(DHT11_PIN);
lcd.setCursor(0,0);
lcd.print("Temp: ");
lcd.print(DHT.temperature);
lcd.print((char)223);
lcd.print("C");
lcd.setCursor(0,1);
lcd.print("Humidity: ");
lcd.print(DHT.humidity);
lcd.print("%");
delay(1000);
}