How to Publish DHT11 Sensor Data from NodeMCU to Mosquitto MQTT Broker over LAN | NodeMCU | MQTT |

Поделиться
HTML-код
  • Опубликовано: 18 мар 2023
  • In this tutorial, we will learn how to publish DHT11 sensor data from NodeMCU to Mosquitto MQTT Broker over LAN. We will cover the setup of the environment, connecting the DHT11 sensor to NodeMCU, writing the code, and publishing the data to the MQTT broker.
    Read Blog: fusionautomate.in/how-to-publ...
    #IoT #NodeMCU #Mosquitto #MQTT #DHT11 #Tutorial #DIY
    ------------------------------------------------------------
    🌐Website : fusion-automate.super.site/
    💬Telegram: t.me/PYLIN
    📸Instagram: / fusion_automate
    🗺Facebook: / papercodein
    🛒Shop: automation-nodes.com/
    💼LinkedIn: / fusion-automate
    👨‍💻GitHub: github.com/papercodeIN/
    📢Join this channel to get access to perks: / @fusion_automate
    ------------------------------------------------------------
  • НаукаНаука

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

  • @dhanushkadharmasiri6528
    @dhanushkadharmasiri6528 14 дней назад +1

    Thanks lot. It took 4 days to solve this issue.

  • @diogotorres9400
    @diogotorres9400 4 месяца назад +1

    MAN THANK YOU SO MUCH. I was trying to figure it out this problem for weeks!! 🙏🙏

  • @TheSelfUnemployed
    @TheSelfUnemployed 10 месяцев назад +2

    You are the BEST! I can finally move on with my project! Many thanks and blessings upon you good sir

  • @tecfixed2840
    @tecfixed2840 8 месяцев назад +1

    massive thanks for this very helpfull video, was unable to connect using mqtt and your information got me running within 15 mins after spending days looking on the internet.

  • @vophuctoan664
    @vophuctoan664 2 месяца назад

    Thank you so much

  • @zhepty12
    @zhepty12 15 дней назад +2

    thanks a lot ,, you make my day

  • @huseinperez4948
    @huseinperez4948 9 месяцев назад +1

    Thank you so much indeed. That was just great !!!!

  • @TheLbky0404
    @TheLbky0404 9 месяцев назад +1

    ^^.. Best Description.. Thank you!

  • @truongquangbaokhanh2910
    @truongquangbaokhanh2910 10 месяцев назад +1

    THANK YOUUUUUUUUUUUUUUU MASTERRRRRRRRRR

  • @Pechette-1911
    @Pechette-1911 10 месяцев назад +1

    THANK YOU VERY MUCH!!!

  • @marelyruiz1321
    @marelyruiz1321 3 месяца назад +1

    THANK YOU SO SO SOOO MUCH

  • @hashanmadusanka6128
    @hashanmadusanka6128 3 месяца назад +1

    thank you so much

  • @yupingliao4078
    @yupingliao4078 5 месяцев назад +1

    Thank you

  • @denyyrahmat0
    @denyyrahmat0 Месяц назад +1

    very helpful video. thankyou👍👍👍👍

  • @NataliaJimenez05
    @NataliaJimenez05 3 месяца назад +1

    I LOVE YOU

  • @erwinhafiztriadi5994
    @erwinhafiztriadi5994 2 месяца назад

    Sir can i ask you something, im literally new on this thing, if i use broker locally on my laptop, how can i send data to that broker from my esp32 ? Im wondering how.Please help sir thanks!

  • @os-channel
    @os-channel 11 месяцев назад +1

    Hi Fusion Automate,
    what a great project! It works properly.
    I would like to setup a MQTT project with one ESP32 as a subscriber and another ESP32 as publisher. The broker should be a local RasPi standalone as Broker-Server creating its own WLAN without connection to the Internet via Router or Access Point.
    Can you give me hints how to do this?
    The handling of the ESP32 should be easy. But with the RasPi I have got my problems to combine the installed Mosquitto and the WLAN-Server capabilities.
    Do you have this setup described in one of your courses? (Please without NodeRed.)
    Thanks!
    Oli

    • @Fusion_Automate
      @Fusion_Automate  10 месяцев назад +1

      Hi, Yes it is possible to do it without node-red. Actually you dont have to do anything just install mosquitto in PI and connect your pi with any wifi and same wifi you can use for esp32. You can ping me on WhatsApp or Telegram for in depth discussion or doubts.

  • @Sahil-og01210
    @Sahil-og01210 Год назад +1

    Sir it show failed to read from dht11 sensor although i check dht11 sensor by putting code of dhtTester it work properly

    • @Fusion_Automate
      @Fusion_Automate  Год назад +1

      Okay, then simply edit dht tester code and make integrate mqtt code in that.

  • @tatatadooooo11
    @tatatadooooo11 Год назад +1

    sir. we need to create topic before run arduino code or not ? many thanks

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

      Yes, you need to create topic first in arduino code and then you have to upload code so publish and subscribe event use those topics.

  • @abdurrahmansisman6897
    @abdurrahmansisman6897 7 месяцев назад

    the dht11 is working ,the problem is you have to write dht.begin in void setup when you do that everything working fine

  • @user-ub5fs5nl4w
    @user-ub5fs5nl4w 5 месяцев назад

    please I need help , address 127.0.0.1 doesn't work , i can't define my local ip address , I want connect it with mobile client

  • @tanujmishra5711
    @tanujmishra5711 3 месяца назад +1

    how do you solve the failed to read from DHT sensor problem in serial monitor in the videp

    • @Fusion_Automate
      @Fusion_Automate  3 месяца назад

      there was loose connection with dht11 bcs of that that error occurred.

    • @tanujmishra5711
      @tanujmishra5711 3 месяца назад +1

      @@Fusion_Automate thank you

  • @dhicosatria3050
    @dhicosatria3050 6 месяцев назад +2

    the blog doesn't seem to exist?

    • @Fusion_Automate
      @Fusion_Automate  6 месяцев назад +1

      fusion-automate.blogspot.com/2023/06/how-to-publish-dht11-sensor-data-from_5.html?m=1

    • @Fusion_Automate
      @Fusion_Automate  6 месяцев назад +1

      Could You please use the new url for blog. Thanks.

    • @dhicosatria3050
      @dhicosatria3050 6 месяцев назад +2

      big thanks!@@Fusion_Automate

  • @hermantoprastyawan5420
    @hermantoprastyawan5420 10 дней назад +1

    how can i get MQTT explorer?

    • @Fusion_Automate
      @Fusion_Automate  10 дней назад

      Please join this telegram channel to download it: t.me/+ut3hOA01l6lmYTY9

  • @Sahil-og01210
    @Sahil-og01210 Год назад

    SIR, I DO THIS AS YOU SAY BUT IT SHOW MQTT CONNECTED THEN SHOW TEMPERATURE AND HUMIDITY AND AGAIN SHOW SAME THAT MQTT CONNECTED AND TEMPERATURE AND HUMIDITY ETC... BUT NOT SHOW WHEN I SUBSCRIBE TOPIC ON MYMQTT IN MY MOBILE PHONE.

    • @Fusion_Automate
      @Fusion_Automate  Год назад +1

      there's problem in your code i need to check in your code

    • @Sahil-og01210
      @Sahil-og01210 Год назад

      I GIVE MY CODE HERE PLEASE CHECK IT

  • @asepsubarkah8360
    @asepsubarkah8360 4 месяца назад

    What if with Ethernet connection? Have you can connect?

    • @Fusion_Automate
      @Fusion_Automate  4 месяца назад

      I am sorry, Could you please explain more?

  • @andre267
    @andre267 3 месяца назад +1

    I got a MQTT Server on my Pi 2 and get always rc 2 error.
    The MQTT Explorer trys to connect always.

    • @Fusion_Automate
      @Fusion_Automate  3 месяца назад

      So you mean, your mqtt explorer is not able to connect with broker running inside raspberry pi ?

    • @bromasoficial8855
      @bromasoficial8855 2 месяца назад

      I got the same thing, I’m working with esp8266

  • @sufianronzi1786
    @sufianronzi1786 3 месяца назад +1

    Thank you sir it works the other day and i was happy! But the next day i ran the program, it doesn't work.. it says connection failed just like before...I redo all like in the video again but the issue doesn't resolve... Any thoughts on this sir? Or anyone?

    • @Fusion_Automate
      @Fusion_Automate  3 месяца назад

      I have faced the same issue, its windows problem so we have to delete all previous configuration and we have to create it again like port forwarding and firewall rules.

    • @sufianronzi1786
      @sufianronzi1786 3 месяца назад

      @@Fusion_Automate thanks for the suggestion. I tried as per suggested and it works like magic! it looks like i need to do as per suggested every time i boot up my pc. Wondering if there's a way to not to go through the reconfiguration process each time booting up the pc. Btw, i will be using raspberry pi instead of pc. Tried already on raspberry pi and no firewall and port forwarding configuration as of now. Thank you sir and wish me luck for my fyp🙏🏼

  • @user-engineerchef
    @user-engineerchef 5 месяцев назад +1

    port forwarding blog is not existing

    • @Fusion_Automate
      @Fusion_Automate  5 месяцев назад

      Please check here: fusion-automate.blogspot.com/

  • @yinyenlee109
    @yinyenlee109 4 месяца назад

    Very good video! But I have some question about the mosquitto. The error messages are shown as below:
    1711989156: Opening ipv4 listen socket on port 1883.
    1711989156: Error: Only one usage of each socket address (protocol/network address/port) is normally permitted.
    1711989156: Opening ipv6 listen socket on port 1883.
    1711989156: Error: Only one usage of each socket address (protocol/network address/port) is normally permitted.
    How yo solve this problem? I google many times on this but didnt have a useful solution about this. Thank you!

    • @Fusion_Automate
      @Fusion_Automate  4 месяца назад +1

      It seems like some other application is using same port 1883. So, you have to fetch which application is using same port and you have to close that application.
      netstat -p tcp -ano | findstr :1883
      You can use above windows command to check the process id which use the port 1883.

    • @yinyenlee109
      @yinyenlee109 4 месяца назад +1

      @@Fusion_AutomateI had found another way to solve this problem. Thank you!

    • @Fusion_Automate
      @Fusion_Automate  4 месяца назад

      Can you Share it here ? So in future if some have same problem then can learn from it.

    • @yinyenlee109
      @yinyenlee109 4 месяца назад

      @@Fusion_Automate I just create a text file and run it as administrator with two lines,
      listener 1883
      allow_anonymous true
      Then, I save it as listener.conf in the file directory of mosquitto and run the command in command prompt,
      mosquitto -v -c listener.conf
      Then the mosquitto can run already.

    • @yinyenlee109
      @yinyenlee109 4 месяца назад

      Also, now I am trying to import a machine learning model into node red for classification of data received through a pzem sensor, is there a way can directly import the model that I had trained into node red?

  • @user-mf2et2fr2u
    @user-mf2et2fr2u 4 месяца назад +1

    how to subcribe this??

  • @Sahil-og01210
    @Sahil-og01210 Год назад +1

    please help me!!!

  • @luxcatz8452
    @luxcatz8452 10 месяцев назад +1

    Thank you so much