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

preview_player
Показать описание
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.

#IoT #NodeMCU #Mosquitto #MQTT #DHT11 #Tutorial #DIY
------------------------------------------------------------
------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

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

dhanushkadharmasiri
Автор

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

diogotorres
Автор

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

TheSelfUnemployed
Автор

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.

tecfixed
Автор

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

huseinperez
Автор

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

os-channel
Автор

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!

erwinhafiztriadi
Автор

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

abdurrahmansisman
Автор

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

tatatadooooo
Автор

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

Sahil-og
Автор

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

ubfsnlw
Автор

What if with Ethernet connection? Have you can connect?

asepsubarkah
Автор

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.

Sahil-og
Автор

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

tanujmishra
Автор

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?

sufianronzi
Автор

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!

yinyenlee
Автор

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

andre