top of page

Arduino LCD DHT11 SICAKLIK VE NEM PROJESİ

  • Yazarın fotoğrafı: muhammed ali balkaya
    muhammed ali balkaya
  • 8 Ara 2018
  • 1 dakikada okunur


PROJE KODU

#include "DHT.h"

#include <LiquidCrystal.h>

#define DHTPIN 2

#define DHTTYPE DHT11

DHT dht(DHTPIN, DHTTYPE);

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);



void setup() {



lcd.begin(16,2);

lcd.setCursor(0,0);

lcd.print("DHT11");

lcd.setCursor(0,1);

lcd.print("SICAKLIK/NEM Sens");

delay(2000);


}


void loop() {

float t = dht.readTemperature();

float h = dht.readHumidity();


lcd.clear();

lcd.setCursor(0,0);

lcd.print("SICAKLIK: ");

lcd.print(t);

lcd.setCursor(0,1);

lcd.print("NEM: ");

lcd.print(h);

delay(2000);



}

 
 
 

Comments


© 2023 by Parenting Blog

Proudly created with MAB.com

  • YouTube Sosyal Simge
  • Facebook Black Round
  • Twitter Black Round

BURSA / OSMANGAZİ

Mail listemize katılın

bottom of page