MQTT with ESP32 and DHT22 using Wokwi | Display on Node-Red Dashboard
Vložit
- čas přidán 7. 09. 2024
- In this video, we will see how to Simulate ESP32 Integration with DHT22 with Wokwi and send the temperature and humidity values to the Node-RED Dashboard using MQTT.
By the end of this video, you can see the real-time changes in Temperature and humidity of DHT22 on the Node-Red Dashboard using the MQTT publish and subscribe mechanism.
1. Setup ESP32 with DHT22 in Wokwi
2. Add the libraries needed
3. Upload the code
4. Setup the MQTT publish in code
5. Setup Node-Red
6. Create a Node-Red Dashboard to subscribe
7. View the Dashboard for the Temperature and Humidity values
This can be used as IoT projects for final year students
__________________________________________________________
🔗Important links:
GitHub Tutorial Link: github.com/Har...
Wokwi Home Page: wokwi.com/
ESP32 Pin Layout: docs.espressif...
__________________________________________________________
🙋Connect with Me:-
Presenter: Hariharnath Paduchuru
LinkedIn: / hariharnath
WhatsApp channel: whatsapp.com/c...
__________________________________________________________
🎥 🎤️ My Video Equipment:-
Boya ByM1 mic: amzn.to/3MkRMRg
BROLAVIYA Overhead Video Mobile Stand: amzn.to/3QCpDYq
Digitek Tripod: amzn.to/49g1Cxm
Digitek Ring light: amzn.to/46LGwFJ
__________________________________________________________
🎞Curated Playlists:-
IoT Fundamentals: • Fundamentals of IoT
IoT Applications: • IoT Applications
Career in IoT: • Career in IoT
IoT Cloud Platforms: • IoT Cloud Platforms
Azure IoT Series: • Azure IoT Tutorial Series
Node-RED Tutorials: • Node-RED Tutorials
__________________________________________________________
@Wokwi
#mqtt #esp32 #wokwi
Hello, I'm here from Brazil, your video helped me a lot! Thanks!
Thank you for the comment
Very nice 👏
Thank you
hello, its a nice video, but i have a question ? do you use hivemq websocket client for MQTT broker?
Thank you. I have used 1883 port in this video which is a Tcp port. You can also use websocket port 8884 if your application demands it
@@IoTFrontier thankyou for the repply, i tried use websocket from hivemq but in my node red it keep disconnected, even i have configured the mqtt in, do you know why its happened?
May be you can get the answer here groups.google.com/g/node-red/c/ByzqoQdkGMI?pli=1
@@IoTFrontier thankyou alot fot helping me, have a good day
Where is the broker running ? Are the MQTT Broker and Wifi Connections WOKWI virtual connections ?
I have used hivemq public broker as shown in the diagram in the video. The wifi used in Wokwi is the virtual connection.
Sir please help me out with this question, Can u create ur own library of sensor in workwi ??
Yes that should be possible. Check out their documentation or support to learn more
@@IoTFrontier thank u
Sir please help me out with this question, When I enter any line, I receive nan data ? and I can't deploy it myself, because then the data returned is nan
There could be multiple reasons. Few of them are here
1. Sensor might not be working
2. Sensors connections might be loose
Check it properly or try to use another sensor if available
This is applicable if you are using the real sensor instead of simulator
@@IoTFrontier I copied your code, but when I press enter on any line of code, the data will be nan
Where can I get the code?
@@snehan2629 check the description. Follow the steps in GitHub