DHT22 & 0.96 OLED Display




I know there are lots of Instructables showing how to use a DHT22 and a 0.96 OLED display but I thought I'd show how I made mine!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Required Components

For this Instructable I'm using the following easily available parts:

Arduino Uno or compatible

DHT22 sensor

0.96 OLED display

Breadboard and jumper wires.

Step 2: Connecting It All Together

Connect the parts as follows:

DHT22 pin1 to Arduino 5v

DHT22 pin2 to Arduino pin2

DHT22 pin3 to Arduino Ground (GND)

OLED GND to Arduino Ground (GND)

OLED VDD to Arduino 5v

OLED SCK to Arduino D5

OLED SDA to Arduino D4

Step 3: The Code

This is the code I used to get the readings from the DHT22 and display them on the 0.96 OLED.

I used the U8G2 display library as I wanted a bit more control over the text size and fonts used.

1 Person Made This Project!


  • Made with Math Contest

    Made with Math Contest
  • Multi-Discipline Contest

    Multi-Discipline Contest
  • Robotics Contest

    Robotics Contest

3 Discussions


11 months ago

Seriously, THANK you for sharing. This Instructable really helped me understand some of the coding aspects i wasn't getting through my thick skull.
One thing i am still having trouble figuring out though, is how to convert the Temp to Fahrenheit...?
Any tips or clues would be really appreciated. Thanks again.

1 reply

Great first Instructable. Thanks for sharing with the community.