Tutorial 4# DHT11 Temperature & Humidity Sensor with arduino UNO

Поделиться
HTML-код
  • Опубликовано: 2 фев 2025

Комментарии • 8

  • @UCs8iLZnBS-BnCz3Fi6
    @UCs8iLZnBS-BnCz3Fi6 5 лет назад

    I like the way you have described everything. Straight to the point. No bullshit gyan.

  • @prabhakarbansode5165
    @prabhakarbansode5165 6 лет назад

    nice explanation sir....plz make the videos of other sensors also....

  • @anushkamishra7578
    @anushkamishra7578 5 лет назад

    How to add library

    • @sanyamiri
      @sanyamiri 3 года назад

      thats what i dont know either! can you tell me if you know how to do it please?

  • @kuldeepsinghkaswan5148
    @kuldeepsinghkaswan5148  6 лет назад

    #include
    #define dataPin A0
    dht DHT;
    void setup()
    {
    Serial.begin(9600);
    }//end "setup()"
    void loop(){
    //Start of Program
    int readData=DHT.read11(dataPin);
    float t=DHT.temperature;
    float h=DHT.humidity;
    Serial.print("temperature = ");
    Serial.print(t);
    Serial.println("C ");
    Serial.print(" Humidity = ");
    Serial.print(h);

    Serial.print(" % ");

    delay(2000);//Wait 5 seconds before accessing sensor again.
    //Fastest should be once every two seconds.
    }// end loop()

  • @allweneedtoknow.5099
    @allweneedtoknow.5099 6 лет назад +3

    Give the codes

    • @kuldeepsinghkaswan5148
      @kuldeepsinghkaswan5148  6 лет назад +1

      #include
      #define dataPin 8
      dht DHT;
      void setup()
      {
      Serial.begin(9600);
      }//end "setup()"
      void loop(){
      //Start of Program
      int readData=DHT.read11(dataPin);
      float t=DHT.temperature;
      float h=DHT.humidity;
      Serial.print("temperature = ");
      Serial.print(t);
      Serial.println("C ");
      Serial.print(" Humidity = ");
      Serial.print(h);

      Serial.print(" % ");

      delay(2000);//Wait 5 seconds before accessing sensor again.
      //Fastest should be once every two seconds.
      }// end loop()