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-Fi Cl...
Wokwi | Door Lock Project: • Create an ESP32 Door Lock System: Wokwi Be...
Blynk + sinric : • ESP8266 NodeMCU with Blynk and Sinric Pro ...
PushButton + Potentiometer : • LED Brightness Control with Button and Pot...
L298n Motor Driver: • L298n Motor Driver | Control 2 DC Motors w...
QuartzComponent UnboxingReview: • QuartzComponents Review Unboxing | Honest ...
Background Music: • No Copyright Music Cyber Attack EDTi B...