Introduction: 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!

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.