Arduino DHT11 Humidity sensor | EASY WAY /

by amine-M

Arduino DHT11 Humidity sensor | EASY WAY
Add to Favorite | اضف الى المفضلة

Arduino DHT11 Humidity sensor | EASY WAY

45 views

0   0

Comments | تعليقات

0 Comments | تعليقات

    Upload a project

    Project description | وصف المشروع

    ABOUT THE SENSOR:
    The DHT11 humidity and temperature sensor make it really easy to add humidity and temperature data to your DIY electronics projects. It’s perfect for remote weather stations, home environmental control systems, and farm or garden monitoring systems.
    The DHT11 measures relative humidity. Relative humidity is the amount of water vapor in air vs. the saturation point of water vapor in the air. At the saturation point, water vapor starts to condense and accumulate on surfaces forming dew.
    The saturation point changes with air temperature. Cold air can hold less water vapor before it becomes saturated, and hot air can hold more water vapor before it becomes saturated.

    HOW TO SETUP:
    Before you can use the DHT11 on the Arduino, you’ll need to install the DHT lib library. It has all the functions needed to get the humidity and temperature readings from the sensor. It’s easy to install, just download the DHTLib.zip file below and open up the Arduino IDE.
    Then go to Sketch>Include Library>Add.ZIP Library and select the DHTLib.zip file.

    DHT11 LIBRARY:
    http://www.circuitbasics.com/wp-content/uploads/2015/10/DHTLib.zip

    CODE:

    #include

    dht DHT;

    #define DHT11_PIN 7

    void setup(){
    Serial.begin(9600);
    }

    void loop()
    {
    int chk = DHT.read11(DHT11_PIN);
    Serial.print("Temperature = ");
    Serial.println(DHT.temperature);
    Serial.print("Humidity = ");
    Serial.println(DHT.humidity);
    delay(1000);
    }

    Published | نشرت

    1 month ago

    Category | الفئة

    Pictures  /  All | كل شىء  /  Arduino

    Tags | الكلمات الرئيسية

    temperature sensor humidity sensor arduino easy arduino uno DHT11 PCBWAY

    Next Media
    Related Stuntups
    More from this user