#include <Wire.h>
#include <DHT.h>
#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
#define DHT22PİN 7
#define DHTTYPE DHT22
DHT22 dht (DHT22PIN , DHTTYPE);
void setup() {
}
void loop() {
Serial.begin(9600);
lcd.begin(16,2);
lcd.print("yasar subas");
lcd.clear ();
int chk DHT22.read(DHTPIN7);
lcd.setCursor(0,0);
lcd.print ("Sıcaklık:");
lcd.print((float)DHT22.temperature,2);
lcd.print("C");
lcd.setCursor(0,1);
lcd.print("Nem:");
lcd.print((float)DHT22.humidity,2);
lcd.print("%");
delay(2000);
}