How to Set Up the DHT11 Humidity and Temperature Sensor on an Arduino

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

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

  • @trontty
    @trontty 4 года назад +61

    Finally a tutorial that works. You would not believe how many I have gone through.

    • @hailiu1721
      @hailiu1721 4 года назад +1

      @BaconMasterT_YT you should check out BV3D, they have great tutorials, too. :)

    • @Noah-ek8hp
      @Noah-ek8hp 3 года назад +1

      I've went through at least 10 different ones

  • @gold3ngam3s84
    @gold3ngam3s84 3 года назад +6

    this is literally the only video on youtube that has the download to the needed library, liked :D

  • @vedansh29
    @vedansh29 5 лет назад +9

    While using the LCD, you should use I2C module so that the connection becomes simple because we only need 4 pins (including VCC and GND)

    • @vedansh29
      @vedansh29 5 лет назад +3

      watch any video on on youtube for more convenience

  • @First.Last.99
    @First.Last.99 2 года назад +1

    worked! I had a problem as it was my first project. asked me to change port and I randomly picked a wrong one. So once I changed it its working normally! thank you. easy for a first project ;)

  • @minifigjake
    @minifigjake 7 лет назад +5

    Great video to get the basics of the sensor down. Especially with the info on your blog page. Thanks!
    Using mine to control the environment in my snake enclosures via a mister and small computer fan.

  • @Un_Pour_Tous
    @Un_Pour_Tous 5 лет назад +6

    Some DHT11 has signal pin in middle and ground on left and VCC on right.

  • @mattiasollo9987
    @mattiasollo9987 11 месяцев назад

    Thank you so much from Italy! My thesis can now progress. Your help is greatly appreciated.

  • @sinaiyema-osango5736
    @sinaiyema-osango5736 2 года назад

    Thanks by thousand dewde... I was stuck on the step to display the temp and the humidity on lcd and finally succeed retrying all the plugs now it works !!!!!!
    You deserve a thumb up :)

  • @jasonc9495
    @jasonc9495 5 лет назад +8

    In case anyone is wondering how to convert this to fahrenheit, you just change this line---- lcd.print(DHT.temperature * 1.8 + 32, 0);

    • @LNasterio
      @LNasterio 4 года назад +1

      why would anyone possibly want to convert it to none sense

  • @thecrazykartbyAJ
    @thecrazykartbyAJ 3 года назад +3

    Thanks for the useful video! May I ask you, why between correct readings I receive this reading? 12:43:40.127 -> Temperature = -999.00
    12:43:40.161 -> Humidity = -999.00

    • @Gargamilk
      @Gargamilk 3 года назад +3

      you should just put the delay to 1500 and everything should be fine :D

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

      @@Gargamilk I receive the same error , I've put delay to 1500 and still the same thing

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

      Same :(

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

      delay(2000) works for me.

  • @ycmgxekwa
    @ycmgxekwa 7 лет назад +2

    I got it working. I am not sure why arduino IDE wouldn't accept the library but anyhow it did in the end. I am happy now.

    • @yunabi4362
      @yunabi4362 10 месяцев назад

      how did you fix the problem

    • @Malaak_purloin
      @Malaak_purloin 9 месяцев назад

      How do u fixe it ??

    • @xxintixx4638
      @xxintixx4638 6 месяцев назад

      how did u fix it tho

  • @benjaminw2310
    @benjaminw2310 6 лет назад +4

    Values of the resistors?

  • @fazuraaaw7054
    @fazuraaaw7054 2 года назад

    what if i want to power it by a battery what changes will be added to the board

  • @Szhd69
    @Szhd69 5 лет назад +1

    what resistors were used ?

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

    Putting the delay to 2000 fixed this for me thank you

  • @usamaafana8671
    @usamaafana8671 4 года назад +1

    how many programs can you upload to the Ardiuno Uno card? if many, can you flip between two programs with a switch?

  • @skwid11
    @skwid11 2 года назад +1

    I just had the same issue if the delay time is too low it will blink 999 on the values. I set it to 1500 and its working

  • @amirulhakim2676
    @amirulhakim2676 5 лет назад +5

    Can I use arduino nano instead of uno

  • @pari20099
    @pari20099 6 лет назад +18

    Hi, I have selected the serial. When I see the serial output, I am getting the display as given below:
    emperature = -999.00
    Humidity = -999.00
    Temperature = -999.00
    Humidity = -999.00
    Temperature = -999.00
    Humidity = -999.00
    Temperature = -999.00
    Humidity = -999.00
    Temperature = -999.00
    Humidity = -999.00
    Temperature = -999.00
    Humidity = -999.00
    Temperature = -999.00
    Humidity = -999.00
    What went wrong ? Can you please help?

    • @klaasmuller9663
      @klaasmuller9663 6 лет назад +5

      pari20099 Hi, you put the delay which is 1000 to 2000 then it will work

    • @shadahmed7310
      @shadahmed7310 6 лет назад +3

      i have also tried that but this isn't working i am getting the same response as-999.0

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

      @@shadahmed7310 he mean 1000to 2000 but not included 1000 and 2000
      let's try 1500. or maybe the cable s damaged

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

      @@CauseImYourFat I know bro I tried it but later on I found out that there was an issue with my DHT11 Sensor . btw thanks for help.

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

      Your code is wrong

  • @carlospineda1228
    @carlospineda1228 3 года назад +1

    For anyone working on this. If you set it up with the LCD like in this video, I used a 2k ohm resistor at pin 3. I tried to follow his tutorial with the potentiometer, but mine was broken.

    • @chanakyashukla5820
      @chanakyashukla5820 2 года назад

      Bro to set up an LCD it is a little pain and patience, if you have JHD 162A. This quick tip can work flawlessly.
      After connecting all pins successfully, and make sure you soldered it right and your LCD is still alive; test it by powering it's last two 15,16 pins or first two 1,2 with 5v.
      Now if the lights but shows nothing on screen then we can began because pin 3 is alone responsible for displaying anything over it, until then your project will look useless though program must be running just fine. So, here what you do in the code
      create an integer value after including the LCD library and the Sensor's Library.
      eg.
      int Contrast=20; // keep it this much for good visibility, the more you increase this value your text will go more blurry.
      NOW!
      in the void setup() {
      analogWrite(6, Contrast); // here you used the pin 6 of Arduino board as a digital potentiometer.
      }
      * So what actually you did, you used the reverse technology. Instead of limiting the voltage via a potentiometer you are actually giving a controlled voltage via PWM pins of uC board.
      as you know PWM is a digital mimicry of natural Sin Wave. So we created an integer and set it's value later we analog write it and it works quite well. Make sure your connections are correct and you might need to reset the controller quite some time everytime the wired connections are loose. Hope it helps! Later!

    • @chanakyashukla5820
      @chanakyashukla5820 2 года назад

      and yeah connect the PIN 3 of LCD to PIN 6 of Arduino. *MOST IMPORTANT STEP* my bad i forget to tell you this :D

  • @ghosteen1890
    @ghosteen1890 Год назад

    Quick question, whats with the chk variable in the code? Ive been digging it AND the library and i dont see it referenced again anywhere

  • @sub0924
    @sub0924 5 лет назад +2

    If you get the -999 error make sure you've connected the pins of the DHT11 right, some sensors have the + - and signal placed differently than the sensor used in the video.

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

      or you can change the delay to 2000... I was having this issue but when I changed the delay to 2000 it stopped showing -999

    • @calmz9508
      @calmz9508 3 года назад +1

      @@yasinr9233 OMG, thank you so much

  • @achillesalbarico2532
    @achillesalbarico2532 Год назад

    Hi,is it ok to use the SDA and SCL pins in the lcd?

  • @unkophil
    @unkophil 4 года назад +3

    Dude...thank you so much!!!! I followed your instructions to the T and everything went well!

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

    Hello. I need a block diagram of this project. Can you help me?

  • @15Stratos
    @15Stratos 3 года назад

    I'm using the exact same program with the exact same library having connected the 4-pin sensor exactly the way it's connected in your site.For some reason both the temp and humid readings are -999.Can you tell me why?

  • @jonathanflores3748
    @jonathanflores3748 9 лет назад +1

    Thank you so much bro! i couldn't find my mistake and you helped me good video!!

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

    Can this work without the potentiometer?

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

    hello, sir why connecting the dht11 signal wire to the digital pin instead of the analog pin?
    i know that the digital pin gives just two values 1 and 0.

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

    Hi it read 33 degree celsius. but supposedly the real temperature of my room when i check using room thermometer is 30 degree celsius. How do I adjust it?

  • @MrBobWareham
    @MrBobWareham 5 лет назад +3

    Have joined your channel as I found your tutorial easy to follow and very helpful thank you Bob

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

    if i want to use the output of the dht11 to turn on a 5v fan, what is the wiring? i had it working with a mosfet and a 12v, but i want to eliminate any extra components. just on and off based on humidity, don't need speed control.

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

    Hey there, thanks for the video.
    I have some problems, when I copy the code and run my dht11 is overheated pretty quickly and on the serial monitor it only show -999 for both temperature and humidity.

    • @beningledew2002
      @beningledew2002 2 года назад

      your dht11 might be backwards happened to me first time too, as for the -999 issue, try setting the delay to 2000 instead of 1ooo.
      hope this helped,
      ben

  • @RD-ni7qe
    @RD-ni7qe 4 года назад +1

    Why does the temperature only display in 1 degree increments, can you make it display a more accurate reading like 26.48?

  • @club9productions10
    @club9productions10 4 года назад

    How much long the wires could be between DHT11 and the arduino (max possible length of wire for accurate readings)??

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

    works fine for me using Uno with serial monitor. However, have yet to try out the LCD version. Bravo.

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

    Great video!.... do you have videos were you take it a few steps further? The Arduino reads the sensors values. A threshold is programmed to initiate a Digital out pin to energize a relay, in turn opening a water valve, and driving an actuator that opens a damper/ turning on a fan.?

  • @krishnas2576
    @krishnas2576 4 года назад

    how can send the collected datas to my mobile or bluetooth device or any I2C module interface something like that?!

  • @ohok8615
    @ohok8615 Год назад

    where the lcd library sir?

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

    yesss. this is exactly what i needed. but i will measure insidse a fridge so i need to go lower than 0 celcius degrees. as far as i can see dht11 supports only between 0-50. so i guess i'll be using dht22 right? will the code be the same for dht22? also the goal of my homework is to transfer the data to my computer wirelessly from the sensor. how can i do that? thank you.

  • @syedashah590
    @syedashah590 2 года назад

    Hi.... is there one sensor for both Temperature and humidity ??

  • @michaelzarnowski3298
    @michaelzarnowski3298 5 лет назад +1

    Does anyone know of a way to port all the recorded information into an excel sheet or anything like that?

  • @lilscent1
    @lilscent1 4 года назад

    When I try to go to your website it says there is an error connecting to the database, I'm not sure if thats a problem on your end or mine but when I looked it up most things point to the service provider or owner of the website. Just thought I'd let you know. Thanks for the tutorial.

  • @intravena
    @intravena 4 года назад +1

    Can I plug in multiple temperature sensors?

  • @allanfranklinflanco3596
    @allanfranklinflanco3596 7 лет назад +9

    connected it correctly but prints -999 and my DHT11 melted,any solutions?

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

      If you change the delay timing to 1500 or more it will allow the display to update less frequently. Not sure about the DHT11 melting, although my first time assembling it I thought "I" had it right but no display appeared. Turns out I had one of the "pot" wires in an empty hole. Moving it over it worked perfectly. I'm guessing you have the wires reversed for the DHT11 power connections.

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

      i changed it to 5000 delay and it wont work

    • @Rizzan8
      @Rizzan8 4 года назад +1

      @@lexumi5161 Setting the delay to 1500 helped me with my -999 issue.

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

    Hi sir!
    How will I set temperature and humidity by using push button? Please help me.
    Thanks in advance.

  • @EntropyOfTime
    @EntropyOfTime 4 года назад

    looking for a link to the code

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

    Hey thanks for this great video!!
    I’ve added a second relay and if and else statements and an additional output pin for a total of 2 commands but can’t get the second output pin to energize the second relay. Any suggestions?

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

    Why do we connect the sensor to a digital pin? Dont we have an analog signal from the sensor? Im confused

  • @sammather9830
    @sammather9830 4 года назад +6

    i keep getting an error where i get -999 and dont know how to fix it

  • @yprastyo33
    @yprastyo33 8 лет назад +1

    how about if temperature above 100 degree celcius ?

  • @guppypvp9582
    @guppypvp9582 Год назад

    my lcd display is flickering and idk what to do please help

  • @abdessamadsalhi6137
    @abdessamadsalhi6137 5 лет назад +1

    Hi I have a problem about the humidity it shows me like this
    Temperature = 32
    Humidity = 9.00
    Temperature =32
    Humidity =9.00
    Temperature = 32
    Humidity = 9.00
    Temperature = 32
    Humidity =9.00
    Can you tell me please what i should do

  • @monicarojasrestrepo2157
    @monicarojasrestrepo2157 8 лет назад +5

    Hi! finally something I can understand! Sorry I'm a super beginner on electronics.
    I followed the steps but the "Serial Monitor" only shows "-999" value on both Temperature and Humidity. Do you know why?

    • @Circuitbasics
      @Circuitbasics  8 лет назад

      Sounds like something may not be connected properly... Are you using the same pins I used in the video?

    • @madpenguin9402
      @madpenguin9402 8 лет назад +1

      +Mónica Rojas Restrepo You've prob done it now but yes you've got your dht wires wrong way round. Been playing myself and same thing - until I swapped the + and - around (it sure got hot at one point!)

    • @monicarojasrestrepo2157
      @monicarojasrestrepo2157 8 лет назад

      +Mike Mo yes, it was that. thanks

    • @VolthausLabElectronics
      @VolthausLabElectronics 8 лет назад +1

      We all are beginners in the beginning. Live and learn! (i gotta get that tattooed on me someday)

    • @rimjhimkashi995
      @rimjhimkashi995 7 лет назад +1

      how was the -999 problem solved...?

  • @Malphius123
    @Malphius123 7 лет назад

    Can i ask where`s the potentiometer from the LCD video guide?

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

    can you tell me the name of things that i require to first buy and then build it

  • @roystervi
    @roystervi 8 лет назад

    Question....The dhtt22 working great so somewhat...they are about 10 to 20ft away and I tested voltage. the voltage on the far one is 4.9v. one problem I am having is that sometimes the the temp drop from 70 degrees to 51.1 degrees. is there a way to correct this problem?

  • @christophermartinez1769
    @christophermartinez1769 6 лет назад +5

    That library version is not working well for me, insted i used version 1.2! :)

  • @LNasterio
    @LNasterio 4 года назад

    datasheet said it provides a 40bit data with decimal on Humidity and Temperature, how come the sensor only ever displays whole number?

  • @yofatim123
    @yofatim123 4 года назад

    Hello, I tried your scetch. Well done, however I get -999 values for both temperature and humidity, then I get the normal values, and then back again -999. What could be the reason?

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

      Same for me. I'm not sure if the problem is with the library installed or the code.

    • @marcybtw5971
      @marcybtw5971 2 года назад

      imposta 1500 come delay e si risolve

  • @sivavemasani5503
    @sivavemasani5503 5 лет назад +1

    I have to a potentiometer to it
    How to connect that this

  • @BasharatAli-xs7mm
    @BasharatAli-xs7mm 2 года назад

    Hello brother this circuit make with volt and current meter means volt amp Watt and temperature show on one display for 5v
    Please make a More video

  • @Eric.Poirier.
    @Eric.Poirier. 5 лет назад

    I want to put a better delay like 200 or 400 but i keep getting this -999.0 is that because the sensor is too cheap ? I that because de arduino cant calculate this fast ?

  • @samyukta4369
    @samyukta4369 Год назад

    We're getting zero for both values...what to do??

  • @TeamDriftNationVideo
    @TeamDriftNationVideo 8 лет назад +22

    my sensor just prints -999.00 for both temp and humidity. send help.

    • @baghdaddroid8417
      @baghdaddroid8417 7 лет назад +2

      mine also

    • @DiamondDogGoPewPew
      @DiamondDogGoPewPew 7 лет назад +1

      Make sure you use the right code should be under "DISPLAY HUMIDITY AND TEMPERATURE ON AN LCD"

    • @rukman48
      @rukman48 7 лет назад +12

      give more delay. 2000 will be good. give more time gap to access the sensor.

    • @vijaybhandari9614
      @vijaybhandari9614 7 лет назад +3

      check ur connections
      + go for 5v and -ve go to ground and the left one go to pin

    • @donknowz
      @donknowz 7 лет назад +8

      change delay from 1000 to 2000 , it will solve your problem

  • @bryanaguilazamora422
    @bryanaguilazamora422 2 года назад

    What resistors were used for the LCD display? Thanks

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

    Hi, how do you modify the code to use two DH11 sensors? I am working on a greenhouse project that involves using two sensors. thanks

    • @ihsanbu
      @ihsanbu 4 года назад

      Define as Dh11_1
      Dh11_2

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

    I am a bit confused, you seemed to have changed your web page (2.30 mins into the video) for this project as there is no library file to download from your link - it only goes to the Arduino Playground page with no obvious way forward or to download the .zip file

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

    DGT 11,how to save data in Microsoft Office Excel Worksheet? plz help me

  • @makramgemayel8396
    @makramgemayel8396 7 лет назад +4

    my board its uno when i put to upload the program on my arduino i get error compiling for arduino uno genuino .so pls where is the problem thanks

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

      check that the code is exactly the same as the one showed in this video, and also that the zip library uploaded is also the one that is being used in this video. Regards!

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

    if it is not working try checking if it is in pin 7 or if it is on 9200 on the serial monitor and if it does work, but it has 999 in the middle then put the delay to 2000

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

    How do we change the code to have it read in Fahrenheit?

  • @ericmb1221
    @ericmb1221 7 лет назад

    Hi Guys, you have to change the delay, just put it in 2000ms. it will work!

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

    Hello, how can I use these data and make a excel graphics in real time?

    • @Daniel-ej8ll
      @Daniel-ej8ll 3 года назад +1

      This might be a bit late but if you're still wondering Arduino can't do that you would need a Rasberry Pi

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

      @@Daniel-ej8ll thanks for the the answer Daniel

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

    Hi
    I would like to know if the humidity sensor would be able to withstand a very humid airflow (95%) for at least 1 hrs ??

    • @Noah-ek8hp
      @Noah-ek8hp 4 года назад

      it will, just make sure it does not get soaked

  • @pianotutorialandniceview4411
    @pianotutorialandniceview4411 7 лет назад

    Hello..
    I got a task from my advisor to make a relation grafik temperature and voltage and a relation grafik relative Humidity and voltage use DHT11 sensor of arduino, but I don’t know the way.
    How to show temperature, relative humidity and voltage simultaneously. It’s can be shown simultaneously?

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

    Anytime I try to verify the code,it just gives me an error code on the first line: “compilation terminated
    dht.h no such file or directory

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

    Nice Video Sir!, btw hows the arduino Sir? is it still working ? Iam confused whether i should choose arduino or plc for controlling air temperature in farm and turn on the spray or other stuffs if it is too hot

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

    what is the type of resistor used for lcd ??

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

    Can this be used to read in Fahrenheit (°F) ?

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

      I'd imagine in the code you can add a formula to change the output reading into fahrenheit.

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

      I'd imagine in the code you can add a formula to change the output reading into fahrenheit.

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

      Thanks, I have since figured it out. Celsius really means nothing to me and all the example sketches did Celsius.

  • @cheeseman4876.
    @cheeseman4876. 4 года назад

    Can someone help i get an error when uploading it says serial port not selected

  • @treylanasa408
    @treylanasa408 7 лет назад

    Is it possible for me to use this set up with the DHT11 to open and close a circuit for an electronic element? For example, if Humidity >= 70 % then element turns on. when Humidity Val

  • @Darksword-786
    @Darksword-786 4 года назад

    I followed all the instructions but my LCD screen doesn't show any readings, can somebody help me out and tell me why or where it needs to go.

    • @robertilie2507
      @robertilie2507 4 года назад

      #include
      #include
      #include
      // Set the LCD address to 0x27 for a 16 chars and 2 line display
      LiquidCrystal_I2C lcd(0x27, 16, 2);
      dht DHT;
      #define DHT11_PIN 7
      void setup(){
      lcd.init();
      lcd.backlight();
      }
      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(2000);
      }

    • @Darksword-786
      @Darksword-786 4 года назад

      @@robertilie2507 Thanks but I don’t need this anymore.

  • @yrecious
    @yrecious 8 лет назад

    how can i output the average readings from DHT11 using Arduino uno

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

    My connections are as per the video, properly given.but I don't y it is showing 999 for humidity and temperature...

  • @AndikaPratama-vn6ft
    @AndikaPratama-vn6ft 8 лет назад

    whats ardiano that you use? and where can i buy that lcd panel??

    • @Circuitbasics
      @Circuitbasics  8 лет назад

      That's the Arduino Uno I'm using. You can get the lcd from amazon, sparkfun, or adafruit... Just search for 16x2 lcd...

    • @mouad801
      @mouad801 8 лет назад

      +Circuit Basics any lcd can work ? i have one with only 4 ports ( the lcd not the sensor)

  • @garybuskirk9521
    @garybuskirk9521 7 лет назад

    do you know how to switch it to ferinheight? A lot of videos on youtube are in celcius...

    • @sMaShEdToMaToS
      @sMaShEdToMaToS 7 лет назад

      you could just multiply the Celsius temperature by 1.8 and then add 32 and that gives you F

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

      Yes, skyfox66 commented @ the website to include the following three lines under the Celsius lines: lcd.print(DHT.temperature * 1.8 + 32); //Fahrenheit conversion
      lcd.print((char)223);
      lcd.print("F");
      You could actually replace the Celsius lines with these and it will work fine. It worked for mine. Although when I copied and pasted it I got an error until I realized the font style of the quotes was different. Once I "typed" them in and increased the delay timing (so the -999's would disappear) it worked fine.

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

    hi...i followed all the steps...and its working fine...but...its display the temperature 47 degree celcius...are the program problem or my sensor faulty???

    • @HemanthKumar-hf5ee
      @HemanthKumar-hf5ee 6 лет назад

      Hello mam can u send me the pic of all ur connections . And also can u say how to make connections to lcd.

  • @vinlawrence7259
    @vinlawrence7259 8 лет назад +3

    Thank you for this demo

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

    having a problem it says that Arduino: 1.8.6 (Windows 7), Board: "Arduino/Genuino Uno"
    sketch_aug11a:1:17: error: dht.h: No such file or directory
    compilation terminated.
    exit status 1
    dht.h: No such file or directory
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    please help

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

    Is there ANYONE who could tell me to do this exact thing with the bmp180?

  • @baghdaddroid8417
    @baghdaddroid8417 7 лет назад

    How to connect it to the LCD plz

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

    followed your guide and my temperature jumps from -999 to 23c which is normal temp. any ideas?

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

      change delay from 1000 to 2000 , it will solve

  • @harleensharma9157
    @harleensharma9157 6 лет назад +4

    mine still says -999 for all. tried everything. PLEASE HELP!!!

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

      sensor not working replace ut

    • @yiannikir9674
      @yiannikir9674 5 лет назад +2

      just tried it, it would have the accurate reading then switch to -999 after one second, to fix this change the delay at the bottom to 5000, incase you didnt know 1000= 1 second.

    • @crimsonhero6683
      @crimsonhero6683 4 года назад

      @@yiannikir9674 Many thanks brother, that fixed it for me, but id like to know why does that work?

    • @yiannikir9674
      @yiannikir9674 4 года назад

      @@crimsonhero6683 The sensor probably cant read the temp/ humidity in 1 second, so if you put it at 5000(5 seconds) it probably gives it time to do its thing. If his sensor worked, its probably an expensive one.

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

    bro i got some problem when its read second time its like 999
    and then its back to normal
    so its like
    temperatur 32
    humidity 70
    temperatur 999
    humidity 999
    temperatur 32
    humidity 70

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

    Hi, I have tried to run this example with the similar setup as given in the video. But I am getting this error message. Arduino: 1.8.7 (Windows Store 1.8.15.0) (Windows 10), Board: "Arduino/Genuino Uno"
    Sketch uses 4300 bytes (13%) of program storage space. Maximum is 32256 bytes.
    Global variables use 239 bytes (11%) of dynamic memory, leaving 1809 bytes for local variables. Maximum is 2048 bytes.
    Please select a Port before Upload
    Can you please help?

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

      Tools > Port > choose whatever board you have

  • @Andyruuuu
    @Andyruuuu 4 года назад

    thank you very much this worked perfect for me!

  • @meme-sama1901
    @meme-sama1901 5 лет назад

    Can someone help me about the code of dht22 using pro micro?
    I tried alot of code and its compiling error

  • @nvanyttig203
    @nvanyttig203 7 лет назад

    Can I send this data to a MySQL database?

    • @theolevin
      @theolevin 7 лет назад

      found this for a raspberry pi:
      raspberryweather.com
      skip around a bit

  • @hailiu1721
    @hailiu1721 4 года назад

    I love the website you build, it is helpful. But, when I put in the code, it says there is an error. So, I had to type it down. :(