Arduino Humidity Sensor using the DHT22 @Pimylifeup
Arduino Humidity Sensor using the DHT22  @Pimylifeup
Uploaded October 2019 | Updated September 2026, 1 week ago
In this video, I go through the process of setting up an Arduino humidity sensor. We make use of the DHT22 for this tutorial.

Tutorial: pimylifeup.com/arduino-humidity-sensor-dht22

Ultimate Books of Pi: pimylifeup.com/ultimate-book-of-pi

This tutorial is relatively easy, and you should have a humidity sensor up and running in no time at all. I will just quickly highlight some of the essential things to know.

To be able to complete this tutorial, you will need the following bits of equipment.

Arduino Uno
Breadboard
Breadboard wire
DHT22 Humidity Sensor
10k ohm resistor (Brown, Black, Orange, Gold)

Even though you should be able to use the DHT11 or DHT21, we still recommend using the DHT22. We haven't tested any of the other sensors, so we can't guarantee they will work flawlessly.

The circuit of this sensor is pretty straightforward and shouldn't take you long to complete. If you're having trouble, we have a full diagram over at the website.

For the code, we make use of a couple of libraries as they drastically reduce the amount of coding required, which is great for beginners.

We go into more detail about the code over at the website. It's also super easy to copy and paste the code, which will help reduce the number of errors you may run into.

I hope that this video on setting up an Arduino Uno with a DHT22 humidity sensor has helped. If you have some feedback, tips, or anything else, then please don't hesitate to leave a comment below or over at pimylifeup.com
Arduino Humidity Sensor using the DHT22Program your Arduino from a Raspberry Pi using the IDEArduino Accelerometer using the ADXL345Raspberry Pi SSH: How to SSH into Raspberry PiThe Pironman Case for the Raspberry 4! #raspberrypi #technologyAn Easy Raspberry Pi Music Player Tutorial [Archived]How to Install the Latest Version of Docker on a Raspberry PiBuild your own Media Server with Plex and a Raspberry PiPlay Retro Games with Raspberry Pi RetroPieTrack Aircraft with Raspberry Pi and Flightradar24Track your Flights Easily with AirTrail on DockerTurn your Raspberry Pi into a Retro Gaming Machine with Batocera
Pi My Life Up |

Arduino Humidity Sensor using the DHT22

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER