#include <LiquidCrystal.h>
#include <dht.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
dht DHT;
#define DHT22_PIN 7 // Define pin # the sensor is connected
void setup(){
lcd.begin(16, 2);
}
void loop(){
int chk = DHT.read22(DHT22_PIN); //Read the data
lcd.setCursor(0,0);
lcd.print("Temp: ");
lcd.print((DHT.temperature* 9.0) / 5.0 + 32.0); //Print the temperature in Fahrenheit
lcd.print((char)223); //Print the degree character °
lcd.print("F"); //°F
lcd.setCursor(0,1);
lcd.print("Humidity: ");
lcd.print(DHT.humidity);
lcd.print("%");
delay(1000); //Delay
}