How to use DHT11 DHT22 with NodeMCU ESP8266 to read temperature over WiFi - IoT

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 มิ.ย. 2024
  • What is Web Server, how to connect and how to read temperature over WiFi network
    The best thank you for me is to not to skip ads and Subscribe 🔔 to my channel, like 👍 the video It is greatly appreciated. 🔔 😊.
    I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe and enable the bell 🔔.😊
    *** Cool new product ***
    SONOFF TH Elite Smart Temperature and Humidity Monitoring Switch
    itead.cc/product/sonoff-th-el...
    Download code for this video: robojax.com/L/?id=79
    **Purchase DHT11 from **
    Amazon USA: amzn.to/3dObYbY
    Amazon Canada: amzn.to/3d4Xg1c
    Amazon Europe (All Europe): amzn.to/3dObYbY
    Banggood (1 pc): www.banggood.com/custlink/m33...
    Banggood: (3pcs): www.banggood.com/custlink/Gv3...
    Banggood bare module(10pcs): www.banggood.com/custlink/GKm...
    ** Purchase ESP8266 NodeMCU **
    from Amazon USA: amzn.to/3d9EDJR
    Amazon Canada: amzn.to/3tNH5vo
    Amazon Europe: amzn.to/3d9EDJR
    DHT22 from
    Amazon USA: amzn.to/36UDm4z
    Amazon Canada : amzn.to/2IZW8iw
    Amazon Europe: amzn.to/36UDm4z
    ** Purchase Arduino Start Kit **
    Amazon USA: amzn.to/3z88F9G or just UNO board amzn.to/3aY7KOL
    Amazon Canada: amzn.to/31an88J or just UNO board amzn.to/3pYxSNN
    Amazon Europe (all Europe): amzn.to/3pMCHge or Just UNO board amzn.to/2PgGItD
    AliExpress: s.click.aliexpress.com/e/_9uc7Xe
    Banggood: www.banggood.com/custlink/3GD... or UNO board www.banggood.com/custlink/vKm...
    eBay: ebay.us/B1JWLi
    ***** Purchase Authentic Arduino Uno from ***
    Amazon USA: amzn.to/2KApAwK
    Amazon Canada: amzn.to/37LZ8sW
    All Europe Amazon: amzn.to/36YDSzn
    Related Videos:
    Introduction to ESP8266: • Introduction to NodeMC...
    Introduction to DHT22 • How to use DHT22 AM330...
    Jump to different section of video by clicking on player timeline
    00:00 Start
    01:16 Introduction
    02:00 Web Server with ESP8266
    05:53 Wiring Explained
    07:57 Preparing Arduino IDE for ESP8266 boards
    10:44 Code explained
    18:13 Demonstration
    21:17 MDNS demo (robojaxDHT)
    21:42 Demonstration with Mobile device
    Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
    Tutorial by Ahmad Shamshiri form Canada
    ****************************
    Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
    Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
    ****************************
    If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
    Follow me on Facebook robojaxTV
    Follow me on Twitter: / robojaxtv
    Follow me on Instagram: / robojax
    Tutorial by Robojax.com
    Get other projects code and learn Arduino
    robojax.com/learn/arduino
    #robojax #robojaxEsp8266 #robojaxDHT
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    I have tried several tutorials of how to get ESP8266 and DHT22 work together. No one has worked. But so did yours! Thank you!

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

      You are welcome. Good to know. Thank you.

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

      did you use a resistor?

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

    What an excellent, simple and amazing explanation. Loved it really.

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

    I'm saving this for later. I love your videos, so organized and concise! Thanks!

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

      You are welcome.

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

    Thanks Robojax. Your code works on first try! I will expand it further to upload to google sheet later.

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

      You are welcome. Good luck.

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

    thank you from Brazil. Best one i've seen so far.

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

      Wow, thanks! Just browse my channel. I've written tones of codes and make videos for both ESP32 and ESP8266 th-cam.com/users/robojaxTVvideos

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

      @@robojax do you have any video teaching how to send this temperature to a website using database?

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

      I am planning to make such videos. In the introduction of ESP8266 I've given example how to send it to the web. Once you receive it by the server, then it is easy to save it on database. saving on database is job of web server.

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

    helpful, thanks from Egypt

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

      You are welcome. salaam. Ahmad. from Canada.

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

    You are great! 👍✅ Thanks for sharing...

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

      So are you. You are welcome.

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

    Sir, video is super clarity

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

    best explained man keep up the good work

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

      Thank you.

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

    This is so helpful and easy to apprehend thanks Robojax. Will so much appreciate if you can assist me on how to safe this data with date and time. The information here refreshes after 3 seconds no way to do data monitoring.

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

      You are welcome. I will have video about the SD card so you can save the data on SD card. Or you can save it on remote server. You can have local server or actual website. I will make video that too but no immediately.

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

      Ok i will be waiting thanks.

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

    Thank you for your prompt reply. It'd nice if you repeated this exercise with the ability to access the nodeMCU from anywhere in the country (or the world?).

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

      You are welcome. that would make the video very long. Accessing home network involves setting up the router. There are 100s of types of routers and we need at least 5 to 10 videos to show them. So it would be very hard. You can search for video "accessing my home network from outside home" . snipboard.io/AHhRpV.jpg Thank you for not skipping the ads and keep watching it. This will help me a lot.

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

    Like no 786. Thank you for sharing valuable information.

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

      Thanks for liking

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

    Thank You!! working perfectly...but one question please i want to display data on webserver on a table already done with that but moreover i want new data to be printed not editing the current one on webserver.(each periode of time create new row on table and print value and keep the old one).. can you help me (sending any useful website...) thank you in advance !

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

    I had DHT11. The "DHT Library on GetHub" you linked to in your webpage, when I installed it, it failed to compile, asking that there is an include to adafruit that is not recognizable, something like that. But when I used the "DHT Library from Robojax.com" it compiled, AND WORKED LIKE A CHARM !!

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

      Hi, please post the error here so I know exactly what the issue is.

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

      @@robojax
      In file included from C:\Users\Dirani\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.cpp:15:0:
      C:\Users\Dirani\Documents\Arduino\libraries\DHT-sensor-library-master\DHT_U.h:36:29: fatal error: Adafruit_Sensor.h: No such file or directory
      #include
      Do I have to add/install a certain library perhaps using the library manager ?

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

      see it is very clear "No such file or directory" meaning you have not followed the instruction and have not added the library. Add the library and it will work.

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

    Thx from germany.
    That was helpful for me.
    i like how Slow your speak and Show it
    Is ist possible to use more than one DHT11?
    Maybe you can help me?

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

      You are welcome. I am glad you found it useful. I have had this on my list to make video, but you can learn from this video if you carefully watch it. th-cam.com/video/L6ekl2ABcuY/w-d-xo.html good luck

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

    A very well explained !
    Thx a lot for your time and effort
    I am getting nan, I don't know why
    I tried to fix a lot but still not working

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

      I have shown why nAN is shown. Must have no connection. Check it or see how I. Show it in the video

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

    I want to understant why use an resitor at DHT11 Pin1 and Pin2.... i've never used that (of course, not knowing why) but it's work (and why it's working?!?)
    Thanks for the tutorial

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

      Hi, for serial communications when there is no signal, we want the pin to be HIGH or 5V and having resistor it will keep it HIGH but if we receive LOW signal that pin can change to LOW. if we don't have resistor it will be be in HIGH state which is needed for communications.

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

    Hi @Robojax, is there a way to send multiple sensor data types, or do you repeat code using a different value with the float command?

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

      Hi, it can be used with types of data.

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

    Good Job..... Can I add deep sleep to this code?

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

    Assalamou Alaikom thanks for the add

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

      Walaikum Salam, Ramadan Mubarak 🌙

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

      @@robojax Ramadan Mubarak Allah Yahfadhak Wa Yaraak الله يحفظك و يرعاك

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

    Great tutorial, thank you for sharing. You have verified the circuit by connecting with the IP address. Was that local or could you have read the temperature from anywhere (in th e world?) using that same IP address?

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

      you are welcome. The IP range starting with 192.168.x.x are reserved local IPs. Thank you for not skipping the ads and keep watching it. This will help me a lot.

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

    have to say, for a newbie, it took me some time to get this working but once i did i loved it. Just one question how do you get both settings to display in separate lines?

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

      which both sittings? do you mean F and C? I have explained the code. simply repeat the same section.

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

    Thanks!

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

      Welcome!

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

    thanks awesome tutorial.. by the way your server apparently screwed up the code when you use ", had yo fix all those lines to compile it.

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

      You are welcome. Yes I noticed this with most of the pages that has "web page" . I will try to fix it soon.

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

    Thanks so much for the video! Got it working first try. I'm trying to get it to display the humidity also on the webpage. I got it to display on the serial monitor but wondering how I could also display humidity on the webpage?

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

      I have explained the code fully and showed how it is done. I am not providing code. I am teaching people so they can do more. so please watch, learn and change the code.

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

      @@robojax great

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

      I figured it out. Since robojax is no help i can explain it. place this after the tenperature part of the html page
      +="Humidity
      ";
      page +="";
      page += String(hValue, 2);
      page +="
      ";
      Then at the very bottom of the code where it says "Serial.println(f); tValue =f;" type "hValue =h;" right after it. Then lastly, at the very beginning of the code (line 50 float tValue;) place "float hValue;" on line 51 and it should work.

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

    I have been trying to connect a ESPEP01 to a DHT22 for weeks, I know the sensor works I am connected to GPI02 but I receive no data. Any help gratefully received

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

    you are the best

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

      So are you. thank you.

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

    Hi, first of all, love your videos, always help me a lot.
    I managed to make it all work, but always, with many sensors, I have the result of NAN, not a value, always nan. where can I check what is wrong? Thanks in advance

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

      Hello , thanks for the comment. I have specifically mentioned NAN and why. May be you have skipped.please watch it fully.

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

      Restart the board.

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

    This is excellent! Really a lot of content in one video and it's explained fantastically.
    However I am getting an error using both a DHT11 and DHT22, both are displaying 'nan' in the console.
    I have tried using different libraries and powering from a different source, but nothing has fixed this.
    The sensors work with a different code; using blynk.
    Can you help?

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

      I have just finally found a fix! It is totally random. forum.mysensors(dot)org/topic/9566/solved-mysensors-and-dht22-difficoulties-in-getting-started/4
      Just need to reconnect the ground, power and then data wire to the ESP8266. It's working perfectly now! Thanks.

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

      I am glad you found it useful and also found the issue.

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

      you prolly dont care but does someone know of a method to get back into an Instagram account..?
      I stupidly lost my login password. I love any tips you can give me

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

      @Titus Gage instablaster :)

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

      @Malachi Nelson Thanks so much for your reply. I found the site thru google and im in the hacking process atm.
      Takes a while so I will reply here later when my account password hopefully is recovered.

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

    After running the arduino sketch is the code then permanent on the esp8266, or do you need to always to have it connected to arduino?

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

      Arduino IDE is just software to program it. once, done you can power it via any USB without computer.

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

      @@robojax Thank you.

  • @anaisdotis-georgiou6421
    @anaisdotis-georgiou6421 3 ปีที่แล้ว

    Thank you for this tutorial, my sketch uploads successfully without errors but I just get ```????``` in my serial monitor. Any tips?

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

      you are welcome. You have not set the Serial Monitor to to 115200 baud. See this photo snipboard.io/y3pKwG.jpg

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

    ❤️❤️❤️❤️❤️

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

      Thanks. The best thank you for me is to not skipping ads and Subscribing 🔔 to my channel, and clinking 👍 the video. It is greatly appreciated. 🔔 😊.
      I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .

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

    I have DHT11 module with registor. It Works well with Arduino UNO but not with NodeMCU. I thought it might be issue of in-sufficient power. So powered DHT separately from Arduino 5V out (Ensured same ground for UNO and NodeMCU) but still not working. Kindly suggest the solution.

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

      Hi, what is this example then? I've shown that it works.

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

      @@robojax Thank you for your reply. And sorry to trouble you. There might be some error in PIN selection. I used another code. And it started working.

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

    Can the sensor still work if its blocked by objects like fabric

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

      They measure the temperature in air. If fabric is allowing air to flow The yes

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

    Very helpful. Thanks.
    Is it possible to access this server or get its temp data into homeassistant.io.

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

      you are welcome. never heard of it.

  • @user-qr2jk7tj6j
    @user-qr2jk7tj6j 4 ปีที่แล้ว

    im having the problem with the output at serial. its showing "nan".
    im using board esp8622 with dth22. pls help me!!! thanks

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

      I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊

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

    I am using an ESP8266-01, an arduino and a DHT22, but currently the sensor is giving me a temperature and humidity read of 2147483647, what can be causing this? I tested the dht to see if it works and it should work properly

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

      it seems wiring is not correct. or module is bad. check it.

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

    I cant get this to compile I load the code you used change to my wifi load the DHT library from your site what am i doing wrong I have only one file under libraries and thats the DHT file.
    I have selected the board correctly. What have I missed ???

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

      Hello, I assume you have watched the introduction video th-cam.com/video/pLvqh57T3s4/w-d-xo.html. then please test the sensor without wifi. make sure it prints the temperature on serial monitor. then come to this video to get temperature over WiFi

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

    i boughjt a node mcu board as an upgrade from an arduino uno.. i also bought a wifi breakout board for my arduino which actually tun=rned out to be a 8266 without the dev board. just the chip..
    my little chip says 8266 on it.. and my nodemcu says esp-12F on it.. NOT esp8266 like i see everyone elses having. and i cant find anything anywhere about what in the hell this 12F board is.. HELP!!!!!!!!
    how do i use this esp-12F board in the same way everyone else is using their 8266 boards? all i want is to build a simple temperature sketch but every time i do anything at all with this it gives me errors sending to board because theres no option in the arduino ida for a 12F board.. only 8266, generic8266, 12, 12E, etc.. no 12F.. i have no idea what im doing.
    what is the difference between the board i have and the 8266?

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

      Hi, ESP-12 module uses ESP8266 chip see it here snipboard.io/97FaKi.jpg
      full datasheet is here wiki.ai-thinker.com/_media/esp8266/a014ps01.pdf so don't worry and use it as ESP8266 and you will be fine.

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

    I need a 0 to 5 volts analog to be displayed remotely.
    sounds like this should be capable anyone want to do this for money I will pay.

  • @0xBerto
    @0xBerto 3 ปีที่แล้ว

    I have been getting compile errors for 2 days now. I have tried everything. Removing and re-adding libraries, trying diff code. cannot get this to work.

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

      this tutorial has 3 parts. 1-DHT 11/DHT22. make sure you can run it and read the temperature on serial monitor. 2-Make sure ESP8266 works and you can so simple webserver. Please watch introduction to ESP8266 and prepare your Arduino IDE. 3-then come to this and it will work. If you skip any step, it will not work.

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

    hello @robojax i need help, and maybe if anyone can help me
    Im doing a Project and it basically is a DTH11 sensor that i need it to sense the temperature of a peltier cell and work like and AC it its too hot it shuts the cell down if its too cold it turns it on and i am connecting it with a node mcu
    however i am also using the node mcu to connect a sensor flex that depending on the serial values it sends a message to a google firebase database that i have created
    my problem is that I have this two as separate circuits, and i need to combine them so that they work together using the same node mcu, that the DHT11 works first for say ten minutes and then the sensor flex, depending on the serial values its going to hvae depending on the flexion of the sensor that it works for another 10
    like i said currently it works but i have to use two separate devices
    im using a node mcu for the flex since is the only one i need with a wifi conncetion to send the data, and for the DHT11 im using an Arduino
    i want to implement them in the same code on the same board and it has to be the node mcu because of its wifi capabilities
    Thanks in advanced to anyone that can help me

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

      Hi David, Your project needs some work and unfortunately I am busy with full time job and graduate course and got no time.

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

    Whish librery do you use

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

      I have explained it in video and also provided zip file and links. Make sure do not escape the video you will see it.

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

    Can i upload this online ? I mean i want this variables be online so i can check th from phone from mb plz i need fast awnser

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

      I am planning to launch such thing. You need a service provider as I mentioned DDAS.cc (not available yet) where the ESP8266 sends the temperature or other values to be recorded and you can read it using your phone or app.

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

      @@robojax okay im gonna wait tutorial my friend

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

    Connecting DHT11 directly on your ESP8266 is dangerous no?? My teacher told me to connect the ESP to my arduino uno first

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

      No. this can operate from 3.3V to 5V so if you connect it to 3.3V of ESP8266 there should not be any danger. see datasheet here www.mouser.com/datasheet/2/758/DHT11-Technical-Data-Sheet-Translated-Version-1143054.pdf

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

      @@robojax I' m uploading the code but I get : Hard resetting via RTS pin...
      In my serial monitor: nan

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

    why it is not working at other net work
    while using same network ii showing temperature on brouser

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

      because it is like your neighbor want to use your printer on WiFi. Each network is separated. Unless you facilitate that. Watch a video on "Remote desktop from outside home" search for it on TH-cam.

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

      ok sir got it
      do help me for my project

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

    How to send data plot sensor DHT11 C and F to multi chart.js view

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

      I might have that in the future. this is very basic temperature display.

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

    I had the dht 11 with 4pins and i didn't put a resistor ,and now i can't get the results has somathing gone wrong

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

      if you have not changed the code, then check the wiring. have you watch the introduction video to DHT11? See this video th-cam.com/video/FjZBt6eU9b4/w-d-xo.html first

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

    So you don't even need Arduino board, only the NodeMCU?

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

      Arduino board is a microcontroller. NodeMcu which is ESP8266 is like Arduino is a microcontroller which is in/out pins plus it has WiFi built-in. Here is introduction to ESP8266 full video th-cam.com/video/pLvqh57T3s4/w-d-xo.html

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

    My ESP8266 does not have D4, which one can I use instead?

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

      Hi, yes. you can define any other Digital pin.

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

    I got stuck at 'DHT22' was not declared in this scope , how can i fix that

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

      You have skipped the video. Watch the video again and follow the instruction. I can assure you that you will find the problem.

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

      @@robojaxim sure follows all the steps, but its like i try too many dht library before and make the program confuse . i try remove all of them and redo the step and its works now ,thanks!

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

      you are welcome and good luck.

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

    How can I put that temperature data in my website?

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

      set it (dht11) as HTTP client. Create database on your web-hosting. Send data using ESP8266 to a php file on your website which records it in the database. Then make another php file that reads it on the website. I will make such videos. But good luck.

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

      @@robojax thanks already. When will these videos come sir?

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

    Please i want someone to help with the right library for dht 11 on esp8266 nodemcu

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

      I have provided datasheet and see what is minimum and maximum voltage and find a battery that is within the range.

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

    I am trying to connect dht22 to esp32. But esp32 gpio can only tolerate 3.3v whereas dht22 output is 5v. How do you solve it?

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

      you have not watched the video. I have explained it. Just follow the instruction. If you want full details of DHT22 which is AM3302 please watch this video th-cam.com/video/oi_GPSLjgBY/w-d-xo.html

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

      @@robojax thank you for your reply. I have actually watched the video. Sorry for asking again, but you asked to put a resistor between data and vdd, but even after that the output voltage is 4.83v,which esp32 can't tolerate. I hope you would explain

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

      If I connect with 3.3v it is ok, but not with 5v

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

      it seems you did not pay attention. I said in the video. this module work with 3.3V. so don't use 5V at all. just use 3.3V and connect the resistor to 3.3V.

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

    I get this error message. Missing terminating " character. Can you tell me what is wrong please?

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

      it means you have missing the double quote " "

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

      @@robojax It was downloaded directly form your site so why is it missing and where does the missing " go?

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

      when you copy and paste, you have missed something. All double quotes are balanced. so check the line it say or line above it.

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

      @@robojax I copied the entire sketch! You might try the same and see for yourself.

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

      Thank you for letting me know. I just check it. I just changed the page. you can download the code.

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

    thank u somuch...but where is the zip file?

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

      you are welcome. The link is in the description. I've mentioned in first 60 seconds of the video where to get the code too.

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

    Why to I get nan for tempature

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

      do you mean you are getting nothing? Impossible. Please post it here whatever is shown so I can help you.

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

      @@robojax okay I fixed the problem it was showing nan repeatedly in the serial monitor the problem was the dht11 unit was bad replaced it with a new one and it is all working now thanks for your help everything works perfectly

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

    Iam getting nan in my output how to solve it

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

      I have explained that in the video.

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

    19:34 it's 3 seconds delay...

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

      is question or statement?

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

      @@robojax statement so you fix it. But it's not a big deal. It's clear and obvious

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

    "error compiling for board Ganeric ESP8266Module" enyone can help me ?

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

      This is not enough. You gotta provide more. You have to watch ESP32 "getting started" video th-cam.com/users/robojaxTVsearch?query=esp32 and also make sure you can use DHT22 th-cam.com/users/robojaxTVsearch?query=DHT22 without any issue.

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

      same here, but resolved after deleting current version of DHT sensor library folder, the folder in Arduino/library of DHT to be deleted, and installed old ver 1.2.3 from www.arduinolibraries.info/libraries/dht-sensor-library

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

    ds18s20 has a much higher resolution and cheaper

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

      But it doesn't measure Humidity.

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

    oh no the code is disappear :(

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

      which code? the website? I am working to fix it. check in about 2 hours from now.

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

      @@robojax oh I can see it now!
      THANKS A LOT!!

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

    he´s talking like lalalala blalalala hahahaha

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

      If you want to learn, then you have to listen. If not then get the code and run if you don't need the "blah blah".

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

      so? what are you actually trying to say? what is your message? Should he change his pronanciation to please you?