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

  Переглядів 24,753

Fusion Automate

Fusion Automate

Рік тому

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

КОМЕНТАРІ: 53
@marelyruiz1321
@marelyruiz1321 8 днів тому
THANK YOU SO SO SOOO MUCH
@diogotorres9400
@diogotorres9400 22 дні тому
MAN THANK YOU SO MUCH. I was trying to figure it out this problem for weeks!! 🙏🙏
@Fusion_Automate
@Fusion_Automate 20 днів тому
You're most welcome friend ✌️
@hashanmadusanka6128
@hashanmadusanka6128 9 днів тому
thank you so much
@TheSelfUnemployed
@TheSelfUnemployed 6 місяців тому
You are the BEST! I can finally move on with my project! Many thanks and blessings upon you good sir
@Fusion_Automate
@Fusion_Automate 6 місяців тому
Glad I could help.
@luxcatz8452
@luxcatz8452 7 місяців тому
Thank you so much
@tecfixed2840
@tecfixed2840 5 місяців тому
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.
@Fusion_Automate
@Fusion_Automate 5 місяців тому
Great buddy ✌️
@truongquangbaokhanh2910
@truongquangbaokhanh2910 6 місяців тому
THANK YOUUUUUUUUUUUUUUU MASTERRRRRRRRRR
@Blankname-1911
@Blankname-1911 7 місяців тому
THANK YOU VERY MUCH!!!
@Fusion_Automate
@Fusion_Automate 7 місяців тому
You're welcome!
@huseinperez4948
@huseinperez4948 6 місяців тому
Thank you so much indeed. That was just great !!!!
@Fusion_Automate
@Fusion_Automate 6 місяців тому
Glad you enjoyed it!
@TheLbky0404
@TheLbky0404 6 місяців тому
^^.. Best Description.. Thank you!
@yupingliao4078
@yupingliao4078 2 місяці тому
Thank you
@Fusion_Automate
@Fusion_Automate 2 місяці тому
You're welcome
@os-channel
@os-channel 7 місяців тому
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 7 місяців тому
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.
@abdurrahmansisman6897
@abdurrahmansisman6897 3 місяці тому
the dht11 is working ,the problem is you have to write dht.begin in void setup when you do that everything working fine
@sufianronzi1786
@sufianronzi1786 13 днів тому
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 13 днів тому
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 10 днів тому
@@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🙏🏼
@tatatadooooo11
@tatatadooooo11 Рік тому
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.
@andre267
@andre267 21 день тому
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 20 днів тому
So you mean, your mqtt explorer is not able to connect with broker running inside raspberry pi ?
@Sahil-og01210
@Sahil-og01210 Рік тому
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 Рік тому
Okay, then simply edit dht tester code and make integrate mqtt code in that.
@tanujmishra5711
@tanujmishra5711 8 днів тому
how do you solve the failed to read from DHT sensor problem in serial monitor in the videp
@Fusion_Automate
@Fusion_Automate 8 днів тому
there was loose connection with dht11 bcs of that that error occurred.
@tanujmishra5711
@tanujmishra5711 8 днів тому
@@Fusion_Automate thank you
@yinyenlee109
@yinyenlee109 28 днів тому
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 27 днів тому
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 26 днів тому
@@Fusion_AutomateI had found another way to solve this problem. Thank you!
@Fusion_Automate
@Fusion_Automate 26 днів тому
Can you Share it here ? So in future if some have same problem then can learn from it.
@yinyenlee109
@yinyenlee109 26 днів тому
@@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 26 днів тому
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?
@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 Рік тому
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 29 днів тому
What if with Ethernet connection? Have you can connect?
@Fusion_Automate
@Fusion_Automate 27 днів тому
I am sorry, Could you please explain more?
@dhicosatria3050
@dhicosatria3050 2 місяці тому
the blog doesn't seem to exist?
@Fusion_Automate
@Fusion_Automate 2 місяці тому
fusion-automate.blogspot.com/2023/06/how-to-publish-dht11-sensor-data-from_5.html?m=1
@Fusion_Automate
@Fusion_Automate 2 місяці тому
Could You please use the new url for blog. Thanks.
@dhicosatria3050
@dhicosatria3050 2 місяці тому
big thanks!@@Fusion_Automate
@user-mf2et2fr2u
@user-mf2et2fr2u Місяць тому
how to subcribe this??
@Fusion_Automate
@Fusion_Automate Місяць тому
I didn't get what you are talking about
@user-engineerchef
@user-engineerchef Місяць тому
port forwarding blog is not existing
@Fusion_Automate
@Fusion_Automate Місяць тому
Please check here: fusion-automate.blogspot.com/
@Sahil-og01210
@Sahil-og01210 Рік тому
please help me!!!
@Fusion_Automate
@Fusion_Automate Рік тому
Bro you text me on WhatsApp +919974477759
Kubernetes 101 workshop - complete hands-on
3:56:03
Kubesimplify
Переглядів 1,6 млн
MQTT 101: Integrate your DIY Devices into Home Assistant
28:06
ResinChem Tech
Переглядів 62 тис.
Спаси её волосы🙏🏻
00:40
БРУНО
Переглядів 1,9 млн
Simple ESP32 IoT Sensor Node Tutorial: WiFi Enabled MQTT Sensor Data Node
10:58
Learn Embedded Systems
Переглядів 43 тис.
MQTT Protocol with NodeMCU ESP8266 Tutorial
20:11
BINARYUPDATES
Переглядів 94 тис.
Node-Red Automation, MQTT, NodeMCU & MicroPython
1:38:50
Kevin McAleer
Переглядів 44 тис.
What is an MQTT Broker Clearly Explained
10:11
Opto Video
Переглядів 184 тис.
The Cheapest Microcontroller? Getting started with the 10 cent Puya PY32.
21:36
Zach of All Trades
Переглядів 28 тис.
Arduino To ESP32: How to Get Started!
9:26
Robonyx
Переглядів 129 тис.
SuperHouse #41: Datalogging with MQTT, Node-RED, InfluxDB, and Grafana
39:31
How to Get Started with MQTT
13:38
Opto Video
Переглядів 391 тис.
Controlling everything with Node-RED dashboard via MQTT
13:36
techiesms
Переглядів 79 тис.
Сомнительно... Ну Окэй... Распаковал Nothing Phone (2a)
16:19
РасПаковка ДваПаковка
Переглядів 56 тис.
ЭТО САМЫЙ МОЩНЫЙ ИГРОВОЙ СМАРТФОН ЗА 270$ 🔥
13:33
Thebox - о технике и гаджетах
Переглядів 36 тис.
NOTHING PHONE 2A - НЕОБЫЧЕН ВО ВСЕМ!
30:39
DimaViper
Переглядів 53 тис.
The PA042 SAMSUNG S24 Ultra phone cage turns your phone into a pro camera!
0:24
I had no idea SHEIN sold PC parts…
27:10
Linus Tech Tips
Переглядів 1,5 млн
Subscribe for more!! #procreate #logoanimation #roblox
0:11
Animations by danny
Переглядів 3,4 млн