ESP32 DHT Web Server Project

Ғылым және технология

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 Жыл бұрын

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

  • @niltonantonyhuancachambi6239

    @niltonantonyhuancachambi6239

    Жыл бұрын

    podria explicar como realizo el codigo http porfa

  • @codybarker9942
    @codybarker99428 ай бұрын

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

  • @EnjoyMechatronics

    @EnjoyMechatronics

    8 ай бұрын

    Perfect!

  • @carlosvaz4392
    @carlosvaz4392 Жыл бұрын

    Great work! Thanks for sharing

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

    No worries 👍

  • @PhG1961
    @PhG19619 ай бұрын

    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 Жыл бұрын

    Nice info, thanks for sharing :)

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

    No problem!

  • @WawanSetiawan-xn3ke
    @WawanSetiawan-xn3ke11 ай бұрын

    Terima kasih ilmunya sukses selalu semoga bermanfaat, salam..

  • @Lionel-pc7ln
    @Lionel-pc7ln4 ай бұрын

    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-as8 ай бұрын

    Lovely work!

  • @EnjoyMechatronics

    @EnjoyMechatronics

    8 ай бұрын

    Many thanks!

  • @HD_TOON
    @HD_TOON Жыл бұрын

    Nice video bro 👍

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

    Glad you liked it

  • @ShinesMonkey1
    @ShinesMonkey12 ай бұрын

    Nice clean web interface - thanks

  • @EnjoyMechatronics

    @EnjoyMechatronics

    2 ай бұрын

    Glad you like it!

  • @RockOfAgesMedia
    @RockOfAgesMedia10 ай бұрын

    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 ай бұрын

    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
    @bosonw43734 ай бұрын

    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-zh2yl5if9p20 күн бұрын

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

  • @PlachtaAndreeaMirela
    @PlachtaAndreeaMirela2 ай бұрын

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

  • @angelarmandoolveragonzalez8124
    @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

  • @user-kc4xc8si1g

    @user-kc4xc8si1g

    6 ай бұрын

    y IAYAN8 YURNVA8RUVO

  • @Fat1413
    @Fat1413 Жыл бұрын

    it really work thx

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

    No problem

  • @dinukajkdy3291
    @dinukajkdy329111 ай бұрын

    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 Жыл бұрын

    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.

  • @vitovalentinoprasetyoputro4552

    @vitovalentinoprasetyoputro4552

    Жыл бұрын

    Where I can get the code?

  • @RGPinger
    @RGPinger7 ай бұрын

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

  • @Pinko3217
    @Pinko32175 ай бұрын

    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 Жыл бұрын

    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
    @nikoskotsilitis19995 ай бұрын

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

  • @humanhurt2384
    @humanhurt23845 ай бұрын

    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Ай бұрын

    Thanks!

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Ай бұрын

    No worries ☺️

  • @muraryk.s4010
    @muraryk.s40106 күн бұрын

    working nicely

  • @EnjoyMechatronics

    @EnjoyMechatronics

    5 күн бұрын

    Good to hear

  • @KennethIsrael_aiikendoit
    @KennethIsrael_aiikendoitАй бұрын

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

  • @MarcosML.
    @MarcosML.5 ай бұрын

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

  • @redavi

    @redavi

    5 ай бұрын

    same for me

  • @stramiro5555

    @stramiro5555

    2 ай бұрын

    Sameee

  • @LordImpaler-xe5qq
    @LordImpaler-xe5qqАй бұрын

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

  • @username8191
    @username81913 ай бұрын

    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
    @benmedka7 ай бұрын

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

  • @arduinomaquinas
    @arduinomaquinas Жыл бұрын

    Show great !

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

    Thanks!

  • @lephungkhang8695
    @lephungkhang8695 Жыл бұрын

    good❤❤

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

    Thanks 😊

  • @madhavdivya
    @madhavdivya11 күн бұрын

    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 Жыл бұрын

    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

  • @comic-typ5919

    @comic-typ5919

    7 ай бұрын

    simply Go for the markings

  • @ayushjha1110
    @ayushjha1110 Жыл бұрын

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

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

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

  • @BagadBilla69420
    @BagadBilla694205 ай бұрын

    How can i add a 16x2 lcd display using i2c

  • @thefrugalphotographer
    @thefrugalphotographer12 күн бұрын

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

  • @thefrugalphotographer

    @thefrugalphotographer

    12 күн бұрын

    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-ki5gy4 ай бұрын

    it is possible I assign static IP, please reply

  • @vladostojanov4941
    @vladostojanov494112 күн бұрын

    👍

  • @gayelab11
    @gayelab1111 күн бұрын

    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 :/

  • @EnjoyMechatronics

    @EnjoyMechatronics

    11 күн бұрын

    Use ESP mdns

  • @monicagonzalezgaona9488
    @monicagonzalezgaona9488 Жыл бұрын

    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

    Жыл бұрын

    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Ай бұрын

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

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Ай бұрын

    I believe so

  • @ManhNguyen-bc9qe
    @ManhNguyen-bc9qe Жыл бұрын

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

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

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

  • @joseDiaz21
    @joseDiaz214 ай бұрын

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

  • @EnjoyMechatronics

    @EnjoyMechatronics

    4 ай бұрын

    Definitely 💯

  • @AAlejandra_Saav
    @AAlejandra_Saav5 ай бұрын

    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 Жыл бұрын

    how basically can i use that knowledge with sensors

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

    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-ug3ip8 ай бұрын

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

  • @EnjoyMechatronics

    @EnjoyMechatronics

    8 ай бұрын

    It depends on the server, so read the documentation.

  • @he_good7264
    @he_good72649 ай бұрын

    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 Жыл бұрын

    dontwork

  • @gilbertmphande4519
    @gilbertmphande45196 ай бұрын

    great work! can this code work with the esp8266?

  • @EnjoyMechatronics

    @EnjoyMechatronics

    6 ай бұрын

    Yes it will

  • @beysik6871
    @beysik6871 Жыл бұрын

    Where can I find the code?

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

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

  • @hugocarloshuizaquinto3619
    @hugocarloshuizaquinto36198 ай бұрын

    hay codigo hay like

  • @vitovalentinoprasetyoputro4552
    @vitovalentinoprasetyoputro4552 Жыл бұрын

    Where i can get the code?

  • @EnjoyMechatronics

    @EnjoyMechatronics

    Жыл бұрын

    github.com/Enjoy-Mechatronics/ESP32-DHT-Webserver

  • @lendilendi8789
    @lendilendi87896 ай бұрын

    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
    @radhoinealoui88049 ай бұрын

    Plz can y send me the program

  • @EnjoyMechatronics

    @EnjoyMechatronics

    9 ай бұрын

    github.com/Enjoy-Mechatronics/ESP32-DHT-Webserver

  • @radhoinealoui8804

    @radhoinealoui8804

    9 ай бұрын

    @@EnjoyMechatronics شكرا اخي

  • @bayudharmaprayoga3436
    @bayudharmaprayoga34368 ай бұрын

    Bro code its wrong

  • @EnjoyMechatronics

    @EnjoyMechatronics

    8 ай бұрын

    No, it works

  • @user-kc4xc8si1g
    @user-kc4xc8si1g6 ай бұрын

    send me the code

  • @user-kc4xc8si1g

    @user-kc4xc8si1g

    6 ай бұрын

    IS A HFDNYU JNRDUBUYJJ

  • @mrelo007
    @mrelo0073 ай бұрын

    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

Келесі