تثبيت حساس الحراة و الرطوبة على الاردوينو

38

1

2

Posted in TechnologyArduino

Introduction: تثبيت حساس الحراة و الرطوبة على الاردوينو

About: B.Sc.physics (iraq) , M.Sc.physics (india)

HOW TO SETUP THE (DHT11 HUMIDITY SENSOR )ON AN ARDUINO

Step 1: Introduction

Step 2: Requirements

Step 3: Circuit Diagram

Step 4: Code

Step 5: Completed

Step 6: Code (الكود)

Step 7: Code

#include <dht.h>

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

dht DHT;

#define DHT11_PIN 7

void setup(){

lcd.begin(16, 2);

}

void loop() {

int chk = DHT.read11(DHT11_PIN);

lcd.setCursor(0,0);

lcd.print("Temp: ");

lcd.print(DHT.temperature);

lcd.print((char)223);

lcd.print("C");

lcd.setCursor(0,1);

lcd.print("Humidity: ");

lcd.print(DHT.humidity);

lcd.print("%");

delay(1000);

}

Step 8: Video

Share

    Recommendations

    • Microcontroller Contest

      Microcontroller Contest
    • Space Challenge

      Space Challenge
    • Science of Cooking

      Science of Cooking
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    2 Comments