Skip to content

T/RH measurement from DHT to MQTT, with I2C OLED, on ESP32 or ESP8266 Microcontroller

Notifications You must be signed in to change notification settings

dylaron/dht_esp_mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

  • A Clock that gets accurate time from the internet
  • T & RH Display
  • IoT Sensor sends the T & RH measurement to an MQTT broker
  • Displaying outside temperature getting from MQTT

Picture

Hardware

  • ESP32 or ESP8266 microcontroller development board
  • DHT22 Temperature & Relative Humidity Sensor
  • 128x64 OLED Display with SH1106 controller and I2C Interface
  • A mini breadboard

Wiring

(Wemos D1 Mini as in the example)

  • D1 - SCL of display
  • D2 - SDA of display
  • D4 - DHT signal
  • 5V & GND ... obviously

configuration

Create arduino_secrets.h as below

#define MQTT_BROKER "**.**.**.**"
#define MQTT_USER "..."
#define MQTT_PASS "..."
#define MQTT_TOPIC_PREFIX "dt/..../"
#define MQTT_TOPIC_SUFFIX "/..."

#define THIS_DEVICE_LOC "LivingRoom"

MQTT topic for outside temperature (weather): 'dt/...../outside' i.e., {"temp": 23.0}

About

T/RH measurement from DHT to MQTT, with I2C OLED, on ESP32 or ESP8266 Microcontroller

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published