ESP8266/ESP32 and MQTT | Control GPIO & DHT11 Sensor

Published: 09 June 2024
on channel: TFK ioT
698
21

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] : https://github.com/tfkiot/esp8266-esp...

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: Simulating Wi-...  
Wokwi | Door Lock Project:    • Create an ESP32 Door Lock System: Wok...  
Blynk + sinric :    • ESP8266 NodeMCU with Blynk and Sinric...  
PushButton + Potentiometer :    • LED Brightness Control with Button an...  
L298n Motor Driver:    • L298n Motor Driver | Control 2 DC Mot...  
QuartzComponent UnboxingReview:    • QuartzComponents Review Unboxing | Ho...  

Background Music:    • No Copyright Music   Cyber Attack   E...  


Watch video ESP8266/ESP32 and MQTT | Control GPIO & DHT11 Sensor online, duration hours minute second in high quality that is uploaded to the channel TFK ioT 09 June 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 698 times and liked it 21 visitors.