ESP32 DHT Web Server Project

Поділитися
Вставка
  • Опубліковано 15 гру 2022
  • This Project is an ESP32 web server with the DHT11 or DHT22 sensor that displays temperature and humidity. The web server updates the readings automatically without the need to refresh the web page.
    ► Get your first ESP32 board today and start exploring the world of IoT:
    👉 amzn.to/3AjPwTV
    👉 amzn.to/3oCu2Pz
    --------------------------------------------------------------------
    ► Project: github.com/Enjoy-Mechatronics...
    ● Introduction to ESP32: • Introduction to ESP32 ...
    ● ESP32 Wifi: • Connect ESP32 to WiFi ...
    ● Playlist Link: bit.ly/3TdXiq5
    --------------------------------------------------------------------
    ✅ My current Productivity Setup 👇:
    ● Gaming Headset: amzn.to/3HyXgp2
    ● Gaming Mouse: amzn.to/3ni4Ygp
    ● Best Webcam: amzn.to/44pVUqw
    ● Keyboard: amzn.to/3ALXB3M
    ● GPU: amzn.to/42mylNt
    ● CPU: amzn.to/44lOBjs
    --------------------------------------------------------------------
    FOLLOW ME:
    ● TikTok :
    / enjoy_mechatronics
    ♥ Never Click This! bit.ly/3jvI8g6
    ● Facebook: / enjoymechatronics
    --------------------------------------------------------------------
    ► All content by Enjoy Mechatronics is 100% free. I believe that education should be freely available to everyone.
  • Наука та технологія

КОМЕНТАРІ • 102

  • @rafaelalvesdasilva6754
    @rafaelalvesdasilva6754 Рік тому

    Big hug teacher, health and luck always.

  • @EnjoyMechatronics
    @EnjoyMechatronics  Рік тому +6

    ► Project: github.com/Enjoy-Mechatronics/ESP32-DHT-Webserver

  • @codybarker9942
    @codybarker9942 8 місяців тому +3

    This tutorial was great! I'm planning on adapting it for an in situ soil EC meter.

  • @carlosvaz4392
    @carlosvaz4392 Рік тому

    Great work!
    Thanks for sharing

  • @PhG1961
    @PhG1961 9 місяців тому +8

    Interesting video. However, you're refreshing the webpage every 4 seconds. The way I see it, it is the whole webpage that gets refreshed. If there are (many) more values, which so of them don't change, it is not the best idea to refresh everything. Could you explain how you would only transfer the data of those values instead of the whole page?

  • @Bianchi77
    @Bianchi77 Рік тому +1

    Nice info, thanks for sharing :)

  • @WawanSetiawan-xn3ke
    @WawanSetiawan-xn3ke 11 місяців тому +1

    Terima kasih ilmunya sukses selalu semoga bermanfaat, salam..

  • @Lionel-pc7ln
    @Lionel-pc7ln 4 місяці тому +1

    Works great, is there anyway I can add the localtime to the webpage? I have tried with Const and Float commands, but just can't work it out.

  • @onecircuit-as
    @onecircuit-as 8 місяців тому +1

    Lovely work!

  • @HD_TOON
    @HD_TOON Рік тому +4

    Nice video bro 👍

  • @ShinesMonkey1
    @ShinesMonkey1 2 місяці тому +1

    Nice clean web interface - thanks

  • @RockOfAgesMedia
    @RockOfAgesMedia 10 місяців тому +1

    Good day to you Sir, thank you so much for taking your time to show all the steps that you went through to make the project a success; I have personally been helped greatly. I just wanted to hear from you if that website on which the values are shown, is customizable; as in you can add other things like charts, buttons etc for more comprehensive analysis of the values. Or i'd need to design a separate web-something for that to be possible. Thank you

    • @EnjoyMechatronics
      @EnjoyMechatronics  10 місяців тому +1

      You are very welcome
      Yeah, you could customize it and create a better interface by changing the html code inside the sketch, but you need to learn how to use html and css

  • @bosonw4373
    @bosonw4373 4 місяці тому +1

    That's great. Unfortunately, the option to react to the values with a button is still missing. As in the previous ON OFF project, which was created as an ESP32 access point and cannot be combined well with this. Something like this here, but with buttons would be great.

  • @user-zh2yl5if9p
    @user-zh2yl5if9p 20 днів тому +1

    Can you please make a guide on how to can design the website of the webserver

  • @PlachtaAndreeaMirela
    @PlachtaAndreeaMirela 2 місяці тому +1

    Hello! Thank you for this tutorial! What can I do if when entering the ip address nothing opens in the browser?

  • @angelarmandoolveragonzalez8124

    Hello, I really like your videos and they have helped me a lot. I have learned a lot with your videos. But could you make one using an ultrasonic sensor, an ESP8266 and some distance away that triggers an alarm and pops up an alert or something please. it would help me a lot

  • @Fat1413
    @Fat1413 Рік тому +2

    it really work thx

  • @dinukajkdy3291
    @dinukajkdy3291 11 місяців тому +3

    bro can we attach two sensors like dht11 and mq 135 to the esp32 board and get the data onto a server .and lastly into a mobile phone app . i plan to develop this app . please help

  • @BearFulmer
    @BearFulmer Рік тому +3

    I am looking for a video that shows how the information is transferred to the web from the esp32, like how the variables get transferred most specifically, so I could make a less fancy website but more variables, how the read variables go from the sensor readings and then how they are manipulated by the htlm/css/java im not sure how it changes names.

  • @RGPinger
    @RGPinger 7 місяців тому +1

    ye, use float with 2 decimals, but use only one. Use also float for int number.

  • @Pinko3217
    @Pinko3217 5 місяців тому +2

    ciao intanto ti faccio i miei complimenti perchè spieghi "molto molto bene" per me che sono ignorante nel settore, maneggio un pò di arduino giusto semplici progetti, in questi giorni mi sto avvicinando alla esp32 per un progetto con sonda Dallas che ho già realizzato con la Mega.
    Se mi posso permettere la mia domanda è , si può utilizzare la WI-FI insieme al Bluetoouth per visualizzare la temperatura su un'altra esp32 dove ho collegato un LCD?
    grazie

  • @ericcharland784
    @ericcharland784 Рік тому +1

    Hello all iam working to add 2 relays with this program so i can control my heating in my cotage could you help me figure out how to add this fonction !
    thx for your help

  • @nikoskotsilitis1999
    @nikoskotsilitis1999 5 місяців тому +1

    Perfect good job. I would like to connect 15 sensor dht22 for my beehives can i?

  • @humanhurt2384
    @humanhurt2384 5 місяців тому +2

    I am using BMP280, is the code same or must search again? btw the code that you use is from Arduino examples or must create manually?

  • @roco9393
    @roco9393 Місяць тому +1

    Thanks!

  • @muraryk.s4010
    @muraryk.s4010 6 днів тому +1

    working nicely

  • @KennethIsrael_aiikendoit
    @KennethIsrael_aiikendoit Місяць тому

    wow i like this, what is you dimension size of breadboard?

  • @MarcosML.
    @MarcosML. 5 місяців тому +5

    Hello, I have a problem, the temperature and humidity value is -1.0, WHY???.

  • @LordImpaler-xe5qq
    @LordImpaler-xe5qq Місяць тому +1

    Can I use the nodemcu instead of the esp32 for this project?;

  • @username8191
    @username8191 3 місяці тому +1

    Brother I have this project to present monday so I hope you see my comment and help me.
    I want to edit the web page to include other stuff is it possible?and how can i do it?

  • @benmedka
    @benmedka 7 місяців тому +1

    Hi, i am not good at HTML😢.
    PLEASE what is the relation between the 2 ino files ?.
    Thank you

  • @arduinomaquinas
    @arduinomaquinas Рік тому +1

    Show great !

  • @lephungkhang8695
    @lephungkhang8695 Рік тому +1

    good❤❤

  • @madhavdivya
    @madhavdivya 11 днів тому +1

    If the esp32 is permanently connected to my home WiFi, and I know the IP address of the esp32, why can't I access it from my office WiFi using my mobile phone?

  • @TheOldKid
    @TheOldKid Рік тому +2

    Pretty sad how unorganized the microcontroller world is. You'd think sensors with the name dht11 would all be pinned out the same. The one I have is vcc on left, gnd on right and data in middle. At least that's what the markings are

  • @ayushjha1110
    @ayushjha1110 Рік тому

    Hey If I'm using Nodemcu esp8266 will I have to add other library or the same code will work

    • @EnjoyMechatronics
      @EnjoyMechatronics  Рік тому +1

      It's almost the same code, but there is a slight difference that I am gonna explain in the next few videos.

  • @BagadBilla69420
    @BagadBilla69420 5 місяців тому +1

    How can i add a 16x2 lcd display using i2c

  • @thefrugalphotographer
    @thefrugalphotographer 12 днів тому +1

    I just tried this as my very fist ESP32 project and the screen is stuck on "Hard resetting via RTS pin".

    • @thefrugalphotographer
      @thefrugalphotographer 12 днів тому +1

      And it just worked properly the 6th attempt with no real reason why - oh well, at least it's working now, thanks for the video :)

  • @Robert-ki5gy
    @Robert-ki5gy 4 місяці тому +1

    it is possible I assign static IP, please reply

  • @vladostojanov4941
    @vladostojanov4941 12 днів тому +1

    👍

  • @gayelab11
    @gayelab11 11 днів тому +1

    hello, thank you for this video. but is it possible to get the ip address independently from the laptop, in other words, can i do this project without the need to power the esp32 from my laptop? help pls :/

  • @monicagonzalezgaona9488
    @monicagonzalezgaona9488 Рік тому +1

    when i try to do it it says fatal error: WebServer.h: No such file or directory, i already downloaded the library for Wifi and WiFiClient but i cant find where to download the library for WebServer

    • @EnjoyMechatronics
      @EnjoyMechatronics  Рік тому +1

      The webserver library comes with the esp32 package. So, you don't have to install it.

    • @esathidayet7655
      @esathidayet7655 Рік тому

      @@EnjoyMechatronics i take same error. But not coming with esp32 packages. how can i get it

  • @roco9393
    @roco9393 Місяць тому +1

    Tks bro, I've a question, the DNS name could be saved in the memory flash?

  • @ManhNguyen-bc9qe
    @ManhNguyen-bc9qe Рік тому +1

    i can't find the My-Network to conect. What i should do? please help me!

    • @EnjoyMechatronics
      @EnjoyMechatronics  Рік тому +2

      You have to connect to your network
      You could use your mobile Hotspot

  • @joseDiaz21
    @joseDiaz21 4 місяці тому +1

    Hi, Can I use more than one sensor with a single ESP32?

  • @AAlejandra_Saav
    @AAlejandra_Saav 5 місяців тому +1

    If the router tells me that it is connected but the IP address does not appear on the serial monitor, but the MAC of the device appears linked, I am connecting the ESP 32 with a WLAN 1100 (PHOENIX CONTAC) in the web administrator (of the wlan) It tells me that the ESP 32 is in the connected devices and it gives the MAC, but in the serial monitor it only shows points, that is, it stays in the while and does not show me the IP address, what could I do?
    To connect the WLAN with a tablet or a mobile phone, I must configure the IP to be static, enter the data and it connects, how can I do it on the ESP 32? That is to say, it would be to put the data on its own IP address, WLAN IP, "prefix length" dns 1, dns 2, how can I assign (program) these values to esp 32? What strategy do you recommend?

    • @TaylenIsInsane
      @TaylenIsInsane 5 місяців тому

      i am also having the same problem, it just shows "......." and continues forever. i have not found the solution yet

    • @Vishnu-yp6bz
      @Vishnu-yp6bz 3 місяці тому

      @@TaylenIsInsane SAME HERE , I WAS SO EXCITED TO DO THE PROJECT BUT ONLY "------------" IS COMING. SOMEBODY PLEASE HELP US

  • @nowamaniivannkubito9860
    @nowamaniivannkubito9860 Рік тому +1

    how basically can i use that knowledge with sensors

    • @EnjoyMechatronics
      @EnjoyMechatronics  Рік тому +1

      I have created two functions that return sensor readings:
      readDHThumidity
      readDHTTemperature
      So you can modify their code to return other sensor data.

  • @AdityaSharma-ug3ip
    @AdityaSharma-ug3ip 8 місяців тому +1

    What changes to be made to make it send data to a server by calling a url

    • @EnjoyMechatronics
      @EnjoyMechatronics  8 місяців тому +1

      It depends on the server, so read the documentation.

  • @he_good7264
    @he_good7264 9 місяців тому +1

    I have 4 pins in my sensor, what will be the connections?

    • @benmedka
      @benmedka 7 місяців тому

      First vcc, snd data, forth gnd

  • @user-tc9hp9bj8l
    @user-tc9hp9bj8l Рік тому +2

    dontwork

  • @gilbertmphande4519
    @gilbertmphande4519 6 місяців тому

    great work! can this code work with the esp8266?

  • @beysik6871
    @beysik6871 Рік тому +1

    Where can I find the code?

    • @EnjoyMechatronics
      @EnjoyMechatronics  Рік тому +3

      github.com/Enjoy-Mechatronics/ESP32-DHT-Webserver/blob/main/ESP32-DHT-Webserver.ino

  • @hugocarloshuizaquinto3619
    @hugocarloshuizaquinto3619 8 місяців тому +1

    hay codigo hay like

  • @vitovalentinoprasetyoputro4552

    Where i can get the code?

  • @lendilendi8789
    @lendilendi8789 6 місяців тому +1

    Failed uploading: uploading error: exit status 2 help

    • @jorgeadriano2225
      @jorgeadriano2225 6 місяців тому

      Hello, I had the same problem, you need to disconnect all the pins that receive information (like the dht sensor), and try again

  • @radhoinealoui8804
    @radhoinealoui8804 9 місяців тому +1

    Plz can y send me the program

  • @bayudharmaprayoga3436
    @bayudharmaprayoga3436 8 місяців тому +1

    Bro code its wrong

  • @user-kc4xc8si1g
    @user-kc4xc8si1g 6 місяців тому

    send me the code

  • @mrelo007
    @mrelo007 3 місяці тому

    HELLO i want to make something similar but i want to add some thing to show state of a variable 0 or 1 , can i contact you privately to help me?
    also i noticed you are from tunisia im from algeria