ESP8266/ESP32 and MQTT | Control GPIO & DHT11 Sensor
HTML-код
- Опубликовано: 5 сен 2024
- In this video, we demonstrate how to control 4 LEDs and read data from a DHT11 sensor using an ESP8266 microcontroller and the EspMQTTClient library.
What You'll Learn:
• Setting up the EspMQTTClient library for easy MQTT integration
• Controlling multiple LEDs via MQTT topics
• Reading temperature and humidity data from a DHT11 sensor
• Publishing sensor data to MQTT topics
• Subscribing to MQTT topics to control devices
Components Used:
• ESP8266 Microcontroller
• 4 LEDs
• DHT11 Temperature and Humidity Sensor
• MQTT Broker (test.mosquitto.org)
Code and Resources:
[GitHub Link] : github.com/tfk...
Step-by-Step Guide:
• Setup ESP8266: Connect your ESP8266 to the WiFi network.
• Install Libraries: Ensure you have the EspMQTTClient and DHT libraries installed.
• Wiring: Connect 4 LEDs and the DHT11 sensor to your ESP8266.
• Coding: Implement the code to control LEDs and read DHT11 data via MQTT.
• Testing: Use an MQTT client to publish and subscribe to topics to control the LEDs and monitor sensor data.
📢 Stay connected:
Instagram: / _r_._yan
Facebook: / tfkiot
Thank you for watching, and we'll see you in the next video!
Previous Videos:
Wokwi + Blynk : • Esp32 | Blynk & Wokwi:...
Wokwi | Door Lock Project: • Create an ESP32 Door L...
Blynk + sinric : • ESP8266 NodeMCU with B...
PushButton + Potentiometer : • LED Brightness Control...
L298n Motor Driver: • L298n Motor Driver | C...
QuartzComponent UnboxingReview: • QuartzComponents Revie...
Background Music: • No Copyright Music C...
Nice ❤❤
Nice explanation sir
Nice ❤❤❤🇧🇩🇧🇩🇧🇩
Sir please help esp 8266 me jab se wifi jammer use kiya tha tab se mere nodemcu me code upload nahi hora hain of sare drivers bhi ise karle please help me or port bhi nahi show horah a hain 0lease help me
Esp32 WiFi password 🔑🔑