#include <LiquidCrystal.h>
#include <DHT.h>
DHT;
#define DHT22_PIN 2
#define DHTTYPE DHT22
DHT dht(DHT22_PIN, DHTTYPE);
LiquidCrystal lcd (12,11,10,9,8,7);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
lcd.setCursor(0,0);
lcd.print("start");
delay(1000);
lcd.clear();
dht.begin();
}
void loop() {
// put your main code here, to run repeatedly:
delay(2000);
float t = dht.readTemperature();
lcd.setCursor(0,0);
lcd.print("temp :" + String(t));
delay(5000);
}