DHT11 Temperature & Humidity sensor with Arduino - Tutorial

แชร์
ฝัง

ความคิดเห็น • 352

  • @korbano
    @korbano 6 ปีที่แล้ว +43

    Everyone keep in mind that he used a sensor mounted on a pcb. If you have just the bare sensor, you need a resistor across the analog and 5v pins or it won't work correctly. His already had this resistor on the pcb.

    • @madmaddy9473
      @madmaddy9473 2 ปีที่แล้ว +2

      i would like to know one thing. Is it mandatory to connect the data pin to A0 ?Can I connect it to any digital pin instead?

    • @xdisceptionnuble6071
      @xdisceptionnuble6071 ปีที่แล้ว +3

      @@madmaddy9473 u need to connect the pin to any analog pin, it cannot be in digital, because the value is in analog format

  • @FSchack
    @FSchack 4 ปีที่แล้ว +4

    I'm a bit confused, the DHT11 is supposed to deliver a digital reading, not analog?

  • @technique9915
    @technique9915 3 ปีที่แล้ว

    Tried many videos ......Yours Worked (THANKS)

  • @niwashiniapsivasangaranmoe4122
    @niwashiniapsivasangaranmoe4122 6 หลายเดือนก่อน +1

    It helps me for my robotic project thank you.

  • @cadudatoro4998
    @cadudatoro4998 8 ปีที่แล้ว +8

    Hey Brainy , super easy and fast! thank you , if you allow me to say something , there is a huge difference of volume of sound between the start of video and in the middle. thanks again!

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว +1

      +Cadu da toro Hi, this was one of our earlier videos, so I was still new to making videos for TH-cam and didn't have the best equipment :) Our newer videos are a little better I hope, but always learning to make them better... Thanks for watching btw!

  • @BoldandBrash21
    @BoldandBrash21 8 ปีที่แล้ว

    Very helpful. I found a good sketch that logs DHT22 to an SD Card. Arduino forums haven't helped me though in terms of including pressure data from a BMP280 in the sketch I'd like to use. Is there any way you could help me with that?

  • @m.iinnovations8229
    @m.iinnovations8229 5 ปีที่แล้ว +1

    thank you. it worked for me nice and well. thankyou for the library also

    • @bijoyali7498
      @bijoyali7498 4 ปีที่แล้ว +1

      0q2bsyng💝💗💓💝💗💕💙👍💞💗

  • @jayeshbrahmkshatriya6719
    @jayeshbrahmkshatriya6719 4 ปีที่แล้ว +2

    Can you please include library properties? I want to code it in arduino droid for Android. It asks for library.properties

  • @39ambition
    @39ambition 3 ปีที่แล้ว

    it's nice and clean, thanks!

  • @mahekparvez9
    @mahekparvez9 ปีที่แล้ว

    Really helped, thank you!

  • @TheCarloszoom3000
    @TheCarloszoom3000 6 ปีที่แล้ว +1

    Thanks man.
    That works.
    Any tutorial to use the sensor and a ESP8266 to check the data through an internet connection?

  • @MegaBigboss98
    @MegaBigboss98 8 ปีที่แล้ว

    Why can't my sensor be placed in a position facing the Arduino (just as the one in your video). My sensor can only be placed from the other side, where the Arduino is on its right side, not facing it.

  • @222misbah
    @222misbah 8 ปีที่แล้ว +7

    after adding library, it also says error

  • @hasuladias6439
    @hasuladias6439 9 ปีที่แล้ว +4

    Great video and instructions. One question, shouldn't there be a pull up resistor for this setup ?

    • @LuisRamirez-rn4li
      @LuisRamirez-rn4li 5 ปีที่แล้ว +1

      The Pull up resistor is for the non PCB version of this sensor, I heard this from other tutorial, Saludos

    • @LuisRamirez-rn4li
      @LuisRamirez-rn4li 5 ปีที่แล้ว +1

      *NOTE: If you use a DTH11 or DHT22 module, these might already have a PullUp resistor installed onboard, in that case you shouldn’t use the internal PullUp resistor of the Arduino.
      www.brainy-bits.com/dht11-and-dht22-with-arduino/

  • @dinakar5247
    @dinakar5247 5 ปีที่แล้ว

    hii i want to apply my own temparature formula on DHT.temparature so i assigned to a variable Vo = DHT.temparature but its not working can u suggest some solution

  • @digitalbrain7379
    @digitalbrain7379 9 ปีที่แล้ว +2

    ho! my good, finally its woek, i tested many codes, thanks you!....

    • @BrainybitsCanada
      @BrainybitsCanada  9 ปีที่แล้ว

      川崎春と Thanks for the comment! Always great to hear that it's working! :)

  • @hassannawaz2321
    @hassannawaz2321 7 ปีที่แล้ว

    kindly suggest some temperature sensor which is made up of that materiel which cant b melt because in my project sensor is directly touch all the time with fire

  • @irishRocker1
    @irishRocker1 8 ปีที่แล้ว +17

    I need to look at the datasheet for this. It shows humidity going from 63% up to 75% after only a few seconds. Seems like a large drift in a short period of time.

    • @mortenrobinson
      @mortenrobinson 3 ปีที่แล้ว +1

      I'm pretty sure that it is due to the humidity sensor being a capacitative sensor. Right when you turn it on the sensor is powered through vcc and charge begins building up on the capacitor. This is what appears as your initial drift.

    • @teddyruxpin3811
      @teddyruxpin3811 2 ปีที่แล้ว

      Maybe it's because you are breathing on the sensor

  • @priyankakalena6093
    @priyankakalena6093 6 ปีที่แล้ว +2

    my output for temperature and humidity both are -999 always.. can u help??

  • @zygimantasjasiunas5240
    @zygimantasjasiunas5240 5 ปีที่แล้ว

    Works like a charm

  • @zizo8737
    @zizo8737 ปีที่แล้ว

    lovely tutorial thanks for this

  • @alexlototzky8909
    @alexlototzky8909 3 ปีที่แล้ว +5

    the stability of the readings from your sensor seem to be very erratic!

  • @johndrewbarbosa9836
    @johndrewbarbosa9836 ปีที่แล้ว

    Hello. Is it normal that the humidity sensor is getting hot? What is its operating temperature?

  • @scmmonkey1843
    @scmmonkey1843 ปีที่แล้ว

    Hello brainy how do i make it so it takes the highest temp/humidity and lowest?

  • @SpacePatriot
    @SpacePatriot ปีที่แล้ว

    I had to troubleshoot my sensor for an hour before I found your library download link for DHT.h + the accompanying code., I have the stater kit from elegoo, it doesn't have the best file set. I tried adding the files from elegoo to the library manually and also thru the add .zip function, however this just did not work. Errors after everything I tried. Anyways what im saying is I appreciate what you do! Thanks alot!

  • @AlexTechProjects
    @AlexTechProjects 11 หลายเดือนก่อน +1

    I am impressed - Your videos are incredibly impressive and genuinely helpful😀

  • @KiteSurfingPaul
    @KiteSurfingPaul 9 ปีที่แล้ว

    Hi Ivan, thanks for this. It did the job and got the thing working for me. I have one question, is there any way to increase the accuracy of the sensor? It is only showing the temperature in whole numbers, is the sensor capable of reading the temperature in half degree increments? Thanks!

    • @BrainybitsCanada
      @BrainybitsCanada  9 ปีที่แล้ว

      KiteSurfingPaul In the code here: Serial.print(DHT.temperature)
      If you insert a ",2" like this: Serial.print(DHT.temperature, 2);
      It should display 2 decimal point.
      Haven't tried it with the DHT11, so let me know if it works :)
      Thanks for your comment and watching!

    • @KiteSurfingPaul
      @KiteSurfingPaul 9 ปีที่แล้ว

      Brainy-Bits No, unfortunately that does not seem to work. The code still compiles without a problem and displays the 2 '0' decimals. But only shows the whole number. I am using a DHT11.

    • @BrainybitsCanada
      @BrainybitsCanada  9 ปีที่แล้ว

      KiteSurfingPaul Hi again. Let's try this:
      create a float variable to hold the temperature near the top:
      float tempvar = 0; // variable for holding temperature (float for decimal points precision)
      Then replace the Serial.print(DHT.temperature, 2) line with:
      tempvar = DHT.temperature;
      Serial.print(tempvar, 2);
      Let me know if that works, I'm not near my bench right now so can't test it :)

    • @KiteSurfingPaul
      @KiteSurfingPaul 9 ปีที่แล้ว

      Brainy-Bits Unfortunately no change. Again it compiles without a problem, but makes no change on the LCD display or in the Serial monitor. I appreciate your help with this. But it is a just for fun hobby project here! So no need to bust a gut trying to resolve it!! I have an LM35 temperature sensor running along side the DHT11 and the LM35 shows the temp to 2dp. I just wanted to compare the two sensors for accuracy out of sheer curiosity!

    • @BrainybitsCanada
      @BrainybitsCanada  9 ปีที่แล้ว

      KiteSurfingPaul It's seem that the DHT11 doesn't support decimals (kinda hard to find definitive answer on this but...).
      Although some say that the DHT22 version does! Again can't confirm but that's what I'm finding. I guess that's a limitation of the DHT11. Well at least we've learned something new today! :)

  • @mohamedftirich951
    @mohamedftirich951 8 ปีที่แล้ว +2

    If you want to help me to compile a sensor humidity and temperature DHT22 on Arduino mega 2560
    thanks

  • @navneetkumarupadhyay186
    @navneetkumarupadhyay186 8 ปีที่แล้ว +1

    sir how do i download the library and sketch as clicking on the link pops up just another window with tutorial not any download link !!!!?

    • @josharduino3241
      @josharduino3241 4 ปีที่แล้ว

      #include "dht.h"
      #define dht_apin A0 // Analog Pin sensor is connected to
      dht DHT;
      void setup(){
      Serial.begin(9600);
      delay(500);//Delay to let system boot
      Serial.println("DHT11 Humidity & temperature Sensor

      ");
      delay(1000);//Wait before accessing Sensor
      }//end "setup()"
      void loop(){
      //Start of Program
      DHT.read11(dht_apin);
      Serial.print("Current humidity = ");
      Serial.print(DHT.humidity);
      Serial.print("% ");
      Serial.print("temperature = ");
      Serial.print(DHT.temperature);
      Serial.println("C ");
      delay(5000);//Wait 5 seconds before accessing sensor again.
      //Fastest should be once every two seconds.
      }// end loop()

  • @fpt380
    @fpt380 5 ปีที่แล้ว +1

    Hello . Thank you for your nice video
    I have a question:
    Are the sensors like LM35 and DH11-22 accurate and reliable?
    Are it need to calibrate?
    thank you

    • @northernstar3956
      @northernstar3956 8 หลายเดือนก่อน

      humidity sensor is pretty unreliable

  • @electronishq8149
    @electronishq8149 2 ปีที่แล้ว +5

    Hi need help I am getting zero for both temp as well as humidity. Tried all possible connections with this code. I have 3 pin dht11. What could be the possible reason????
    Need help

    • @ERJakub
      @ERJakub หลายเดือนก่อน

      mee
      too

  • @Jalanjalanskuy_
    @Jalanjalanskuy_ 6 ปีที่แล้ว

    thanks bro, it's work! :D

  • @ecotechworld8588
    @ecotechworld8588 2 ปีที่แล้ว

    Can u help for me ?
    I try make a ATM machine ( software process).In serial port just read one time only .But i need to read more time in one loop ( for to enter the password and the select the account types etc...)

  • @heitorcardoso4189
    @heitorcardoso4189 4 ปีที่แล้ว

    thank you !! good video

  • @bgmooh4608
    @bgmooh4608 8 ปีที่แล้ว

    hi,nice work
    a little question please they usually use an integrated system SHT10 equiped with that sensor what for??

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +mooh artita The SHTxx sensors are more accurate but also more expensive, I believe that the SHTxx versions are also good for outside use since they can handle up to 100% humidity levels, the DHT11 is only rated up to 95%. So if you want accuracy and use it outdoors the SHTxx are better. Hope that helps and thanks for watching!

    • @bgmooh4608
      @bgmooh4608 8 ปีที่แล้ว +1

      +Brainy-Bits thanks a lot :-)

  • @seanschuffert8176
    @seanschuffert8176 7 ปีที่แล้ว +3

    'dht' does not name a type how do i fix this?

  • @Simon-nx1sc
    @Simon-nx1sc 6 ปีที่แล้ว +33

    For anyone with the ERROR: 'DHT.h' there is no such file:
    Change DHT to dht (small letters) in the beginning of the file.

    • @brendanzink2780
      @brendanzink2780 6 ปีที่แล้ว +7

      Thanks dude you're a lifesaver

    • @m.iinnovations8229
      @m.iinnovations8229 5 ปีที่แล้ว +1

      i am still facing the erroe.(error compiling for arduino genuino uno)

    • @usucks7276
      @usucks7276 5 ปีที่แล้ว +1

      even though i change to small letter still got the same error on that

    • @yusufabubakar9862
      @yusufabubakar9862 5 ปีที่แล้ว +2

      @@m.iinnovations8229 any fix for that

    • @martinoka
      @martinoka 4 ปีที่แล้ว

      @@yusufabubakar9862 ^

  • @tommasodemitri6887
    @tommasodemitri6887 7 ปีที่แล้ว

    posso collegare il sensore al campanello di casa? vorrei capire la temperatura dai miei ospiti

  • @surenbono6063
    @surenbono6063 3 ปีที่แล้ว

    ...how do I code a 5 sec delay DHT function to 1 second loop ...since 1second loop is printing inaccurate temperature reading...x2 the Celsius.....if corporates with 12c LCD ..Time Elapsed counter since PC bootup project

  • @alonsovm2880
    @alonsovm2880 3 ปีที่แล้ว +1

    @DHT.readll(dht_apin);
    exit status 1
    expected unqualified-id before '.' token
    please help Dx

  • @redx1170
    @redx1170 5 ปีที่แล้ว

    Any chance you know if this would work with MIT App inventor 2, I'm trying to temp, humidity, gps, and prewritten message send to someone as a project. Thanks to anyone that can guide me to any kind of solution.

  • @meetlalkiya29
    @meetlalkiya29 7 ปีที่แล้ว

    i am having this error..
    please help
    compilation terminated.
    exit status 1
    Error compiling for board Arduino/Genuino Uno.

  • @devi-uu3ts
    @devi-uu3ts 5 ปีที่แล้ว

    sir can u please tell me the connections when arduino mega 2560 connected.

  • @mrunalmanishlalwani7432
    @mrunalmanishlalwani7432 2 ปีที่แล้ว

    I saw some other websites explaining this and they have used a resistor(10k ohm) between the VCC and Data pins, is that necessary to use as you haven't done it hence the doubt

    • @therealmakmillion
      @therealmakmillion 2 ปีที่แล้ว

      No meed, the DHT11 has 1k pull-up resistor onboard.

  • @crackedbowlz2339
    @crackedbowlz2339 4 ปีที่แล้ว

    it says i need Adafruit_sensor may you help it would be appreciated

  • @r.k_1228
    @r.k_1228 5 ปีที่แล้ว

    can you show us how to transmit this data wirelessly? Perhaps using a bluetooth module or something....

  • @fayjason
    @fayjason 6 ปีที่แล้ว

    I’m using an Arduino DingMia Uno R3
    When selecting a board “Arduino Uno” don’t come up as an option nether dos Arduino DingMia Uno R3. The closest board is “Arduino/Genuino Uno. What board would you selector or how would you get the right board to come up as an option?

    • @BrainybitsCanada
      @BrainybitsCanada  6 ปีที่แล้ว

      Choose "Arduino/Genuino". This represents any board based on the Uno design. Thanks for watching!

    • @fayjason
      @fayjason 6 ปีที่แล้ว

      Thank you for the reply
      An error still comes up.
      It reads: Error compelling for Board Arduino/ Genuino UNO
      exit status 1
      error compiling for board Arduino/Genuino Uno

    • @fayjason
      @fayjason 6 ปีที่แล้ว

      Could this error have something to do with my Version of the Arduino software being a different version then your? I have the 1.8.5 for windows 1.8-10.0. Just a thought

  • @digitalbrain7379
    @digitalbrain7379 9 ปีที่แล้ว

    Sorry can you help me? I'm using a nrf24l01 for arduino, but is very complicated, I don't understand very good the English manuals I can't use it, I only need send hello from arduino nano and receive it in arduino mega, but I can't , you know how make a simple code for transmission? Thanks for yours videos are very amazing!!

  • @tonygame9007
    @tonygame9007 5 ปีที่แล้ว +2

    Awesome thank you brother

    • @BrainybitsCanada
      @BrainybitsCanada  5 ปีที่แล้ว

      Thanks for taking the time to comment and for watching Tony. Cheers!

  • @3jaripegangkendali
    @3jaripegangkendali 8 ปีที่แล้ว

    I've got a project to read humidity from DHT11 using multimeter. I believe I should convert the digital output of DHT11 into analog, but I am lost and dont have anymore ideas. Could you help me ? Thanks.

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Riszky Mf Can't help you with that one my friend, maybe someone here can. Thanks for watching!

  • @eduardomurillo821
    @eduardomurillo821 6 ปีที่แล้ว +2

    Hi!! Thank you for the video... I had this error when compiling, compiler says: "'dht' does not name a type"

    • @ArchanaTikayatRay19
      @ArchanaTikayatRay19 4 ปีที่แล้ว

      Download github.com/RobTillaart/Arduino/archive/master.zip
      Copy the Arduino-master/libraries/DHTstable subfolder of the downloaded file to the libraries subfolder of your sketchbook folder. You can find the location of your sketchbook folder at File > Preferences > Sketchbook location in the Arduino IDE.

  • @michaelkevin4005
    @michaelkevin4005 5 ปีที่แล้ว

    how can i set up my own using windows operating system not arduino and DHT11

  • @5ghislaine
    @5ghislaine 7 ปีที่แล้ว +12

    my dht11 sensor is reading 0 for everything. Do you know why this might be?

    • @AmentosOSRS
      @AmentosOSRS 7 ปีที่แล้ว +12

      You should probably use another pin connection. I suppose you got 3 pins. (Left to right: Analog input - 5V - Ground)

    • @David-lt7ko
      @David-lt7ko 7 ปีที่แล้ว +3

      I had the same error and that helped me. Thanks!

    • @AmentosOSRS
      @AmentosOSRS 7 ปีที่แล้ว +1

      David Hawiger you're welcome :)

    • @damianbutterworth2434
      @damianbutterworth2434 7 ปีที่แล้ว

      Plug the output into digital pin 2 and use this program. Not mine i just got it working with this example program

    • @damianbutterworth2434
      @damianbutterworth2434 7 ปีที่แล้ว

      /*
      Board int.0 int.1 int.2 int.3 int.4 int.5
      Uno, Ethernet 2 3
      Mega2560 2 3 21 20 19 18
      Leonardo 3 2 0 1
      Due (any pin, more info arduino.cc/en/Reference/AttachInterrupt)
      */
      #include
      int idDHT11pin = 2; //Digital pin for comunications
      int idDHT11intNumber = 0; //interrupt number (must be the one that use the previus defined pin (see table above)
      //declaration
      void dht11_wrapper(); // must be declared before the lib initialization
      // Lib instantiate
      idDHT11 DHT11(idDHT11pin,idDHT11intNumber,dht11_wrapper);
      void setup()
      {
      Serial.begin(9600);
      Serial.println("idDHT11 Example program");
      Serial.print("LIB version: ");
      Serial.println(IDDHT11LIB_VERSION);
      Serial.println("---------------");
      }
      // This wrapper is in charge of calling
      // mus be defined like this for the lib work
      void dht11_wrapper() {
      DHT11.isrCallback();
      }
      void loop()
      {
      Serial.print("
      Retrieving information from sensor: ");
      Serial.print("Read sensor: ");
      //delay(100);
      DHT11.acquire();
      while (DHT11.acquiring())
      ;
      int result = DHT11.getStatus();
      switch (result)
      {
      case IDDHTLIB_OK:
      Serial.println("OK");
      break;
      case IDDHTLIB_ERROR_CHECKSUM:
      Serial.println("Error

      \tChecksum error");
      break;
      case IDDHTLIB_ERROR_ISR_TIMEOUT:
      Serial.println("Error

      \tISR Time out error");
      break;
      case IDDHTLIB_ERROR_RESPONSE_TIMEOUT:
      Serial.println("Error

      \tResponse time out error");
      break;
      case IDDHTLIB_ERROR_DATA_TIMEOUT:
      Serial.println("Error

      \tData time out error");
      break;
      case IDDHTLIB_ERROR_ACQUIRING:
      Serial.println("Error

      \tAcquiring");
      break;
      case IDDHTLIB_ERROR_DELTA:
      Serial.println("Error

      \tDelta time to small");
      break;
      case IDDHTLIB_ERROR_NOTSTARTED:
      Serial.println("Error

      \tNot started");
      break;
      default:
      Serial.println("Unknown error");
      break;
      }
      Serial.print("Humidity (%): ");
      Serial.println(DHT11.getHumidity(), 2);
      Serial.print("Temperature (oC): ");
      Serial.println(DHT11.getCelsius(), 2);
      Serial.print("Temperature (oF): ");
      Serial.println(DHT11.getFahrenheit(), 2);
      Serial.print("Temperature (K): ");
      Serial.println(DHT11.getKelvin(), 2);
      Serial.print("Dew Point (oC): ");
      Serial.println(DHT11.getDewPoint());
      Serial.print("Dew Point Slow (oC): ");
      Serial.println(DHT11.getDewPointSlow());
      delay(2000);
      }

  • @theIfrit552
    @theIfrit552 5 ปีที่แล้ว +10

    I am not getting any errors but the Serial Monitor only gives me 0,00% Humidity and 0 C. The Library must be broken somehow

    • @theIfrit552
      @theIfrit552 5 ปีที่แล้ว +1

      I managed to get it working. I used a diffrent library and changed arround the vcc and the signal Pin. Most charts online are actually wrong!!

    • @albysegmansyah
      @albysegmansyah 5 ปีที่แล้ว

      @@theIfrit552 can you give me your lib bro?

    • @sairushikjasti660
      @sairushikjasti660 ปีที่แล้ว

      Ya we need ur library 🥺

  • @premsonar786
    @premsonar786 4 ปีที่แล้ว

    Thank you Thank you Thank you Thank you Thank you Thank you So much

  • @priyanshugupta4422
    @priyanshugupta4422 3 ปีที่แล้ว

    My humidity sensor shows the same reading 95% ...its not changing...temp sensing is ok...what might be the problem?

  • @CarliGarcette
    @CarliGarcette ปีที่แล้ว

    Gracias por el video!!

  • @shineratti7587
    @shineratti7587 3 ปีที่แล้ว +2

    I check my Arduino library and there is no such file as DHT or dht. what should I do?

    • @drawnbysean1624
      @drawnbysean1624 ปีที่แล้ว

      I have that same problem and I've been searching for hours. did you ever figure out what to do

  • @ozarkkoalaecosystemservice1229
    @ozarkkoalaecosystemservice1229 8 ปีที่แล้ว +1

    Do the 3 pin DHT11 and 22's not require the 10k resistor?

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Rob Stroh Since we are using a DHT11 "module", the required components are included on the module PCB. If you are using the bare "DHT11" sensor, then yes, you would have to include those before connecting to your Arduino. Thanks for watching!

    • @bigheat86
      @bigheat86 5 ปีที่แล้ว

      I just had the same issue. Didn't work witz 10k ether. The solution: I used the 5V pin of the arduino nano, instead of 3.3v output pin (powered via usb). Dont need a pull up resistor, although I used the plain sensor (without PCB).

  • @roaminrick
    @roaminrick 2 ปีที่แล้ว

    can program an arduino but cant get volume right on a video. maybe cc will work

  • @aoa0687
    @aoa0687 7 ปีที่แล้ว +5

    Hi there...I am having two problems and I hope someone can help me as soon as possible. I did everything in that video but when I took the measurements, they are all -999. And the other problem is that my humidity sensor overheats soooo much to the extent that one time it started to melt, I mean the plastic blue part of it. Help, please!

    • @lethallad1433
      @lethallad1433 6 ปีที่แล้ว

      same

    • @aftereffects00
      @aftereffects00 6 ปีที่แล้ว

      Something is wrong here.. mine is overheats and melt too...

    • @lilcheesecake2871
      @lilcheesecake2871 6 ปีที่แล้ว

      Try a resistor maybe

    • @sahandeepdas3627
      @sahandeepdas3627 5 ปีที่แล้ว

      Use a resistor between the Voltage and the Data Pin to stop it from melting

    • @lethalavidity
      @lethalavidity 5 ปีที่แล้ว

      this gives a nice overview for dht11
      www.circuitbasics.com/how-to-set-up-the-dht11-humidity-sensor-on-an-arduino/@@sahandeepdas3627
      also has a circuit diagram that shows how to put the resistor (if you scroll down)
      (im a beginner so sorry if this was obvious to everyone except me^^)

  • @MegaBigboss98
    @MegaBigboss98 8 ปีที่แล้ว +1

    Nevermind, everything has worked properly. However, why does it always give me values of 0 for temperature and humidity ?

  • @benjibeatsboy
    @benjibeatsboy 4 ปีที่แล้ว

    Where can I find that sensor?

  • @Dfrog123
    @Dfrog123 8 ปีที่แล้ว

    thank's a lot it work like a charm,

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Vicreo Legarreta Glad it helped :) thank you for watching!

  • @henz-benz8820
    @henz-benz8820 ปีที่แล้ว +1

    Not workinf for me dht.H nO SUCH FULE OR DIRECTORY WTH I DOWNLOADED THE LIBRARY

  • @xyzap
    @xyzap 5 ปีที่แล้ว

    where did get the code?

  • @arunsworld007
    @arunsworld007 6 ปีที่แล้ว

    the code is correct. Connect the data pin to A0 on the Arduino Uno Board.

  • @ArturoChungaSaavedra
    @ArturoChungaSaavedra 8 ปีที่แล้ว

    +Brainy-Bits Hi there. What about if I want to get the information of 2 or more DHT11 sensor. How does it change my program?

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว +1

      +Arturo Chunga Saavedra Hi, well my guess is that you just have to declare more variables at the top :
      #define dht_apin0 A0 // Analog Pin Of DHT11 #1
      #define dht_apin1 A1 // Analog Pin Of DHT11 #2
      Etc...
      Then print out each one by one:
      DHT.read11(dht_apin0);
      Serial.print("Current humidity 1 = ");
      Serial.print(DHT.humidity);
      Serial.print("% ");
      Serial.print("temperature 1 = ");
      Serial.print(DHT.temperature);
      Serial.println("C ");
      delay(5000);//Wait 5 seconds before accessing sensor again.
      DHT.read11(dht_apin1);
      Serial.print("Current humidity 2 = ");
      Serial.print(DHT.humidity);
      Serial.print("% ");
      Serial.print("temperature 2 = ");
      Serial.print(DHT.temperature);
      Serial.println("C ");
      delay(5000);//Wait 5 seconds before accessing sensor again.
      +I haven't tried it, but I believe it should work! :)
      Let me know! Thanks for watching!

    • @ArturoChungaSaavedra
      @ArturoChungaSaavedra 8 ปีที่แล้ว

      +Brainy-Bits I will be trying in these days. Thank you for answer me so fast!! I'm really glad! :)

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      Arturo Chunga Saavedra You're welcome buddy! :) Let me know how it turns out!

  • @akshay6667
    @akshay6667 5 ปีที่แล้ว

    It worked fine.

  • @MegaBigboss98
    @MegaBigboss98 8 ปีที่แล้ว

    I downloaded the library, but when I try to activate the code, it displays an error message as if the library isn't there. But it's downloaded though. Need help, thanks.

    • @MegaBigboss98
      @MegaBigboss98 8 ปีที่แล้ว

      So basically how do I extract the library inside the software ?

    • @experx8177
      @experx8177 7 ปีที่แล้ว

      Sketch - include library - DHT (Mine is under contriubted library) Hope this helps

  • @emilywallis2338
    @emilywallis2338 4 ปีที่แล้ว +1

    thanks dude!!

    • @puneethkumar703
      @puneethkumar703 3 ปีที่แล้ว

      wokwi.com/arduino/libraries/DHT-sensor-library if this seems interesting, pls give a like and visit wokwi.com

  • @sumithwijayasiri
    @sumithwijayasiri 2 ปีที่แล้ว

    Do you have a program?

  • @zombieapocalypse8141
    @zombieapocalypse8141 4 หลายเดือนก่อน

    Thank you so much

  • @taiffadhil7465
    @taiffadhil7465 7 ปีที่แล้ว +1

    Thanks alot for your efforts....
    But how can I send this data to another arduino through xbee model.
    Please tell me if you Know any information about it ...

    • @mmiikkee41
      @mmiikkee41 7 ปีที่แล้ว

      Im using RF modules to transmit data between multiple arduinos, their cheap as well.

    • @taiffadhil7465
      @taiffadhil7465 7 ปีที่แล้ว

      +mike Rf like what?
      I want to use xbee model but I still have many problem

    • @idohou
      @idohou 7 ปีที่แล้ว

      did you get an answer to this question , i will like to use this . ive been searching

    • @taiffadhil7465
      @taiffadhil7465 7 ปีที่แล้ว

      id kabasa I still do not have answer until now

    • @BrainybitsCanada
      @BrainybitsCanada  7 ปีที่แล้ว

      Hi, sorry for the delay :(, don't have xbee available for testing right now, but I have a tutorial in the work to use some 2.4ghz wireless modules to send data between arduinos. Stay tuned... Sorry couldn't help with the Xbee...

  • @3ddruckfanatikandreasa.858
    @3ddruckfanatikandreasa.858 4 ปีที่แล้ว

    You have help me greate

  • @amogh2864
    @amogh2864 6 ปีที่แล้ว +1

    pls help, when i connect the 5v pin when ground is connected ,my arduino turns off (disconnects from my computer) and i am not able to upload the code and when i connect to 3.3v so it dosnt turn off but it doesn't work, pls help as fast as you can
    thanks in advance

    • @oliverstvold7397
      @oliverstvold7397 3 ปีที่แล้ว

      im not sure, but you should try to switch the pins. The same have happened to med with another component.

    • @amogh2864
      @amogh2864 3 ปีที่แล้ว

      @@oliverstvold7397 thanks for the help but that was 2 years ago and the problem with me was i put the sensor and pins horizontally on the breadboard so all the Arduino pins were connected with each other which led to a short circuit (i know that's dumb)

  • @MrNewff
    @MrNewff ปีที่แล้ว

    Why did it start at 12 degrees C and go up to 19 so fast?

  • @mahdighadiri-asli
    @mahdighadiri-asli 8 ปีที่แล้ว +2

    I did everything right but my arduino keeps outputting 0 on both temperature and humidity. What can I do?

    • @nevinbenny9010
      @nevinbenny9010 7 ปีที่แล้ว

      same with me but i dont know whats wrong either

    • @5ghislaine
      @5ghislaine 7 ปีที่แล้ว

      did you ever figure out why the output was 0? I keep getting 0 for my outputs.

    • @vip00766
      @vip00766 7 ปีที่แล้ว +5

      for me .. it was bcz the wiring was wrong .. my sensor had 3 pins the first from the left is Analog input and the middle one was 5v and the right one was ground

    • @FULLUPE1
      @FULLUPE1 5 ปีที่แล้ว

      yes thanks for your help is working

  • @xfabielmaster8367
    @xfabielmaster8367 4 ปีที่แล้ว +2

    dhth say me no find in libreries

  • @jhonexbalatayo8075
    @jhonexbalatayo8075 8 ปีที่แล้ว

    hello sir,
    Can i use the same program with a DHT22 sensor?

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Jhonex Balatayo The library supports the DHT11, DHT21, DHT22, DHT33 and DHT44. Althought I only tested it with the DHT11 it should work the same with others. Hope that helps and thank you for watching!

  • @mohdmuzzammilghazali193
    @mohdmuzzammilghazali193 4 ปีที่แล้ว

    hi. i'm using mega 2560 board instead of uno. i already follow your tutorial. but serial data com doesnt show the reading. the error as follows. can u help me on this?
    Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
    Sketch uses 4846 bytes (1%) of program storage space. Maximum is 253952 bytes.
    Global variables use 293 bytes (3%) of dynamic memory, leaving 7899 bytes for local variables. Maximum is 8192 bytes.
    Board at null is not available
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    Tq

  • @digitzero3613
    @digitzero3613 4 ปีที่แล้ว

    Datasheet shows we need to use pull up resistor for DHT11, Can you explain it? Thanks

    • @malte3236
      @malte3236 4 ปีที่แล้ว

      there is a 1k ohm resistor on the module

  • @akshaydey6820
    @akshaydey6820 4 ปีที่แล้ว

    how do i get the code for the program

  • @vineethathrinethri6326
    @vineethathrinethri6326 5 ปีที่แล้ว

    Sir can you please tell us the pin connections for Arduino Mega 2560 and how to display the temperature and humidity values on 1.8 TFT st7735

    • @BrainybitsCanada
      @BrainybitsCanada  5 ปีที่แล้ว

      I've made a newer video about the DHT11 and DHT22, check it out here: th-cam.com/video/8tfj0ZfADcE/w-d-xo.html and also here's the tutorial page for more information:www.brainy-bits.com/dht11-and-dht22-with-arduino/ Hope that helps and thanks for watching!

  • @sureshnatarajan0910
    @sureshnatarajan0910 8 ปีที่แล้ว

    Hi,
    I have just got the sensor and did all the procedures as instructed. In the serial monitor, I receive 0% humidity and 0 C temperature. And if i unhook and hook up the sensor, I get 255% and 255C. Kindly help me fix the problem.
    Thanks

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Suresh Natarajan Hard to say, but check the connections to the sensor, change the wires to make sure none of them are faulty and not making good contact. Make sure you are connected to the right pins using the right voltage etc... hope it helps, but it's hard to say what could be wrong... Hopefully it's not a bad sensor :( Thanks for watching btw!

    • @sureshnatarajan0910
      @sureshnatarajan0910 8 ปีที่แล้ว

      Thanks for the reply. I have requested for the return of sensors in Amazon. They accepted it.

    • @mohdfarisamzar5807
      @mohdfarisamzar5807 8 ปีที่แล้ว

      +Suresh Natarajan same problem here..then how u solve this problem?

  • @piotrantos9808
    @piotrantos9808 5 ปีที่แล้ว

    it works but how to connect a lcd screen to it `?

  • @shivamsahil3660
    @shivamsahil3660 6 ปีที่แล้ว +1

    Does it work with soil too?

    • @bharanidharanmaheswaran3407
      @bharanidharanmaheswaran3407 5 ปีที่แล้ว

      enda en seevana vanguradhukune vareenga, mutta payale idhu humidity sensor da , soil ku poi soil moisture sensor
      vei da pae payalae

  • @YD_.
    @YD_. 3 ปีที่แล้ว +1

    For whatever reason, the temp and humidity both keep showing only zero

  • @tanguypave5517
    @tanguypave5517 7 ปีที่แล้ว +9

    Hi !
    Thanks for the tutorial. I got an error
    DHT11:8: error: 'dht' does not name a type

    • @TheCarloszoom3000
      @TheCarloszoom3000 6 ปีที่แล้ว

      Make sure the DHT library is uploaded and that you select it from the already uploaded libraries before you compile+upload the code to the Arduino.

    • @lnvsslikhithaddepalli9588
      @lnvsslikhithaddepalli9588 6 ปีที่แล้ว

      can you please keep the DHT library plzzzz

    • @amirkhan-fu2uj
      @amirkhan-fu2uj 6 ปีที่แล้ว

      me too

    • @lukemagdalin6169
      @lukemagdalin6169 6 ปีที่แล้ว +1

      my library doesn't work with the line
      #include "DHT.h"
      or #include
      but works with #include
      or #include "dht.h"
      the name is case sensitive

    • @sanidhya6539
      @sanidhya6539 ปีที่แล้ว

      @@lukemagdalin6169 thanks

  • @DR-br5gb
    @DR-br5gb 4 ปีที่แล้ว

    Anyway to calibrate this sensor ?

  • @Willy_LGM
    @Willy_LGM 9 ปีที่แล้ว

    Thanks for the video! Your website doesn't work any more, do you still have the code?

    • @BrainybitsCanada
      @BrainybitsCanada  9 ปีที่แล้ว

      Hi Willy, yes our site went down like 2 hours ago and we are working very hard to get it back online. We might have to switch Host provider since this has happened before :( We will let you know when we are back up, and we have the site backed up so the code will be available as soon as we're back up... Sorry for this! Thanks for watching!

    • @Willy_LGM
      @Willy_LGM 9 ปีที่แล้ว

      Thanks so much, good luck!

  • @YoDay
    @YoDay 6 ปีที่แล้ว

    Please give direct link to this project of your website

  • @h2macm
    @h2macm 7 ปีที่แล้ว

    Thanks much!

  • @1965ace
    @1965ace 4 ปีที่แล้ว +2

    My sensor has the center pin as positive once I switched the data and positive it worked well.

    • @BrainybitsCanada
      @BrainybitsCanada  4 ปีที่แล้ว +2

      Thanks for sharing your experience and for watching of course!

    • @TheFalconJetDriver
      @TheFalconJetDriver 4 ปีที่แล้ว +1

      The same worked for me my sensor came from the Elegoo super starter kit.

    • @prakash52kar
      @prakash52kar 3 ปีที่แล้ว +1

      Thank you Sir, IT worked for me too! Just interchanged the Analog and positive. LOVE YOU! I got kit from RobuIn

  • @AfzalRaza54
    @AfzalRaza54 6 ปีที่แล้ว +2

    all code was dump...output does not show...what to do???

  • @user-bp8xm3ow8c
    @user-bp8xm3ow8c 8 ปีที่แล้ว

    thanks a lot!!

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +강상호 You're welcome and thanks for watching!

  • @QuangNguyen-jz5nl
    @QuangNguyen-jz5nl 8 ปีที่แล้ว

    yeahhhhhhhhhhhhhhhhh thank thank thank you very much...... I love you bro

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Nguyễn Ngọc Quang Love you too man :) Thanks for watching!

    • @QuangNguyen-jz5nl
      @QuangNguyen-jz5nl 8 ปีที่แล้ว

      +Brainy-Bits you don't have to do it ^^. i am very appriciate

    • @QuangNguyen-jz5nl
      @QuangNguyen-jz5nl 8 ปีที่แล้ว

      Hey man. Would i ask some question ? It will not take a long time

  • @wienerschnitzelwienerschni194
    @wienerschnitzelwienerschni194 8 ปีที่แล้ว +3

    Great Job

    • @BrainybitsCanada
      @BrainybitsCanada  8 ปีที่แล้ว

      +Jay Zelsmite Thank you and thanks for watching!

  • @sriharilal5251
    @sriharilal5251 4 ปีที่แล้ว

    Hi bro getting error in program..... 1 row getting error DHt.h

  • @zaidaitah929
    @zaidaitah929 3 หลายเดือนก่อน

    Thank You