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

แชร์
ฝัง
  • เผยแพร่เมื่อ 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: fusion-automate.blogspot.com/...
    #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
    ------------------------------------------------------------
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @diogotorres9400
    @diogotorres9400 หลายเดือนก่อน +1

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

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

      You're most welcome friend ✌️

  • @TheSelfUnemployed
    @TheSelfUnemployed 7 หลายเดือนก่อน +2

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

  • @vophuctoan664
    @vophuctoan664 7 วันที่ผ่านมา

    Thank you so much

  • @tecfixed2840
    @tecfixed2840 6 หลายเดือนก่อน +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.

  • @huseinperez4948
    @huseinperez4948 7 หลายเดือนก่อน +1

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

  • @TheLbky0404
    @TheLbky0404 6 หลายเดือนก่อน +1

    ^^.. Best Description.. Thank you!

  • @marelyruiz1321
    @marelyruiz1321 หลายเดือนก่อน +1

    THANK YOU SO SO SOOO MUCH

  • @yupingliao4078
    @yupingliao4078 3 หลายเดือนก่อน +1

    Thank you

  • @hashanmadusanka6128
    @hashanmadusanka6128 หลายเดือนก่อน +1

    thank you so much

  • @erwinhafiztriadi5994
    @erwinhafiztriadi5994 17 วันที่ผ่านมา

    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!

  • @truongquangbaokhanh2910
    @truongquangbaokhanh2910 7 หลายเดือนก่อน +1

    THANK YOUUUUUUUUUUUUUUU MASTERRRRRRRRRR

  • @Blankname-1911
    @Blankname-1911 8 หลายเดือนก่อน +1

    THANK YOU VERY MUCH!!!

  • @os-channel
    @os-channel 8 หลายเดือนก่อน +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  8 หลายเดือนก่อน +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.

  • @NataliaJimenez05
    @NataliaJimenez05 22 วันที่ผ่านมา +1

    I LOVE YOU

  • @user-ub5fs5nl4w
    @user-ub5fs5nl4w 2 หลายเดือนก่อน

    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

  • @abdurrahmansisman6897
    @abdurrahmansisman6897 4 หลายเดือนก่อน

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

  • @andre267
    @andre267 หลายเดือนก่อน +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  หลายเดือนก่อน

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

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

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

  • @sufianronzi1786
    @sufianronzi1786 หลายเดือนก่อน +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  หลายเดือนก่อน

      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 หลายเดือนก่อน

      @@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🙏🏼

  • @tanujmishra5711
    @tanujmishra5711 หลายเดือนก่อน +1

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

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

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

    • @tanujmishra5711
      @tanujmishra5711 หลายเดือนก่อน +1

      @@Fusion_Automate thank you

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

    What if with Ethernet connection? Have you can connect?

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

      I am sorry, Could you please explain more?

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

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

    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  หลายเดือนก่อน +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 หลายเดือนก่อน +1

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

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

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

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

      @@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 หลายเดือนก่อน

      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?

  • @dhicosatria3050
    @dhicosatria3050 3 หลายเดือนก่อน +2

    the blog doesn't seem to exist?

    • @Fusion_Automate
      @Fusion_Automate  3 หลายเดือนก่อน +1

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

    • @Fusion_Automate
      @Fusion_Automate  3 หลายเดือนก่อน +1

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

    • @dhicosatria3050
      @dhicosatria3050 3 หลายเดือนก่อน +2

      big thanks!@@Fusion_Automate

  • @user-mf2et2fr2u
    @user-mf2et2fr2u 2 หลายเดือนก่อน +1

    how to subcribe this??

    • @Fusion_Automate
      @Fusion_Automate  2 หลายเดือนก่อน

      I didn't get what you are talking about

  • @Sahil-og01210
    @Sahil-og01210 ปีที่แล้ว +1

    please help me!!!

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

      Bro you text me on WhatsApp +919974477759

  • @user-engineerchef
    @user-engineerchef 2 หลายเดือนก่อน +1

    port forwarding blog is not existing

    • @Fusion_Automate
      @Fusion_Automate  2 หลายเดือนก่อน

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

  • @luxcatz8452
    @luxcatz8452 8 หลายเดือนก่อน +1

    Thank you so much