#include <DHT.h>
#include <LiquidCrystal.h>
DHT dht(32, DHT22);
LiquidCrystal lcd(12, 14, 5, 4, 18, 2);
void setup() {
dht.begin();
lcd.begin(16, 2);
lcd.print("Temp: Hum:");
Serial.begin(9600);
}
void loop(){
delay(1000);
float temperature = dht.readTemperature();
float humidity = dht.readHumidity();
lcd.setCursor(0, 1);
lcd.print(temperature);
lcd.print(" C ");
lcd.print(humidity);
lcd.print(" %");
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.print(" C, Humidity: ");
Serial.print(humidity);
Serial.println(" %");
delay(1000);
}