#include "DHT.h"
#include <LiquidCrystal.h>

#define DHTPIN 24
#define DHTTYPE DHT11

DHT dht(DHTPIN, DHTTYPE);
LiquidCrystal lcd(2,1,40,38,36,34);
//(rs,en,d4,d5,d6,d7)

void setup() {
  dht.begin();
  lcd.begin(16, 2);
}

void loop() {
    float nem = dht.readHumidity();

    float sicaklik = dht.readTemperature();// 'C cinsinden.
    //float fahrenheit = dht.readTemperature(true); // 'F cinsinden
     lcd.print("Nem: %");
     lcd.print(nem);
     lcd.setCursor(0, 1);    
     lcd.print("Sicaklik: ");
     lcd.print(sicaklik);
     delay(500);
     lcd.setCursor(0,0);
    
}