Learn how to display temperature and humidity readings from a dht11 dht22 sensor in an ssd1306 oled display using an esp32 or an esp8266 with arduino ide.
Dht11 temperature and humidity sensor arduino code with oled.
Jumper wires for bread board connection.
Display temperature and humidity in the oled display with arduino.
Oled display 0 96 inch x 1.
The idea of using the oled display with the esp32 or esp8266 is to ilustrate how you can create a physical user interface for your boards.
This video show how to build a humidity meter using a dht11 humidity sensor i2c oled display and arduino uno.
The dht11 temperature and humidity sensor senses measures and regularly reports the relative humidity in the air.
This post shows how to build a temperature and relative humidity measurements station using arduino and dht11 dht22 sensor where the measured values of the temperature and the humidity are displayed on 128 64 oled screen with ssd1306 driver.
This will work as a brain of this project which will contain the code and send data to oled display.
Wemos d1 mini is another esp8266 module.
The device is diymall s inexpensive high resolution 128x64 pixels yellow and blue organic led display that is designed for use with the arduino platform.
If you re not familiar with the dht11 sensor read the following article.
Dht11 temperature and humidity sensor.
Together with a dht22 temperature sensor the tiny oled screen will display real time humidity and temperature data using an adafruit library and an arduino uno board.
Here we also display those readings on an lcd display.
The dht22 sensor also known as the am2302 reference and his little brother the dht11 are temperature and humidity sensors.
The dht11 humidity and temperature sensor makes it really easy to add humidity and temperature data to your diy electronics projects.
We ll get temperature and humidity using the dht11 temperature and humidity sensor.
Dht11 sensor x 1.
It uses a capacitive humidity sensor and a thermistor to measure the surrounding air and spits out a digital signal on the data pin no analog input pins needed.
The dht11 is a basic ultra low cost digital temperature and humidity sensor.
The dht22 am2302 sensor is able to measure temperatures from 40 to 125 c with an accuracy of 0 5 c and relative humidity levels from 0 to 100 with an accuracy of 2 5 at extremes to 10 and 90.
Sensors and modules functions.
It measures both moisture and air temperature.
It s perfect for remote weather stations home environmental control systems and farm or garden monitoring systems.
In these tutorials we will measure temperature and humidity by using dht11 with arduino.
A 128x64 i2c oled ssd1306 display is used to d.
In this tutorial i ll first go into a little background about humidity then i ll explain how the dht11 measures humidity.