How to Use a DHT11 Humidity Sensor on the Arduino - Ultimate Guide to the Arduino #38

  Рет қаралды 41,344

Circuit Basics

Circuit Basics

Жыл бұрын

Learn how to measure temperature and humidity with the DHT11 and an Arduino. Examples are provided to connect and program standalone and breakout board type humidity sensors.
This is tutorial #38 in the Ultimate Guide to the Arduino, a complete video course on the Arduino microcontroller with 45 lessons that are designed to teach anyone how to master the Arduino at any skill level. Visit our KZfaq channel page to watch the entire series!
Get the 3-in-1 Arduino Smart Car and IOT Learning Kit from SunFounder here:
www.sunfounder.com/products/s...
Or get the kit from Amazon:
US Amazon: amzn.to/3W1Mahh
DE Amazon: amzn.to/3j0oETn
JP Amazon: amzn.to/3UYrHZG
UK Amazon: amzn.to/3uTJZAC
CA Amazon: amzn.to/3W2vExN
Get a DHT11 humidity sensor from SunFounder here: www.sunfounder.com/products/h...
Visit the webpage for this video tutorial on Circuit Basics for wiring diagrams and example code:
www.circuitbasics.com/how-to-...
And be sure to check out the Circuit Basics blog and social media for more articles and tutorials on the Raspberry Pi, Arduino and other DIY electronic projects!
www.circuitbasics.com
Facebook: / circuitbasic
Twitter: / circuitbasics
Instagram: / circuitbasics

Пікірлер: 17
@qz9720
@qz9720 27 күн бұрын
THANK YOU SO MUCH I was having problems, I had temperature and humidity reading 255 every time but this video solved my issues, you're a legend
@mcoley84
@mcoley84 Жыл бұрын
Thank you for the explanation! Can you elaborate why you stored the result of the read11 function as an int "chk"? The variable doesn't appear to be used anywhere.
@Circuitbasics
@Circuitbasics Жыл бұрын
The chk variable is integral to the library somehow, but I'm not sure how it works. I just know that it's required because I have tried storing the sensor reads in different variables and couldn't get it to work.
@evilkittyofdoom195
@evilkittyofdoom195 Жыл бұрын
Nice...
@brock7157
@brock7157 6 күн бұрын
When I try to verify it, I get the error 'DHT' was not declared in this scope, how do I fix this?
@RicardoBoro
@RicardoBoro Ай бұрын
Serial.print("Temperature = "); 15 Serial.println(DHT.temperature); 16 17 Serial.print("Humidity = "); 18 Serial.println(DHT.humidity); 19 20 delay(1000);
@localfolklores
@localfolklores 2 ай бұрын
what kind of software did you use to demonstrate the usage of DHT11 humidity sensor, virtually?
@omegasm8054
@omegasm8054 29 күн бұрын
Is the Arduino serial monitor, it's already included in the Arduino IDE
@ahmedramadan4169
@ahmedramadan4169 3 ай бұрын
can you give me dht libarary
@minimalSwift
@minimalSwift Ай бұрын
nice but was the background music necessary?
@noahbumvr
@noahbumvr Ай бұрын
4:32 is when the yapping is over btw
@wifa45
@wifa45 4 ай бұрын
Sorry, I'm not a english native speaker but Id like to ask if that reading is in C o F degrees? Thanks 😊
@marcoxyz-Grand
@marcoxyz-Grand 4 ай бұрын
in Celcius
@Nine_883
@Nine_883 6 ай бұрын
Why didn’t you put a link to the library video instead of making people search your channel. It’s not improving your views by making us search. Just the opposite.
@apoorvgupta2710
@apoorvgupta2710 Ай бұрын
Well now u can just install libraries using arduino ide by going to Tools -> Manage Libraries... -> typing DHTlib
@rjbrake
@rjbrake 3 ай бұрын
Dude, great info, but you scare the hell outta me the way you look into the camera like that. Shudder....
@JustinS06
@JustinS06 2 ай бұрын
Looks like he's held at gunpoint lol
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 7 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 3,7 МЛН
Get Started in Electronics #9 - Using the DHT11 Humidity & Temp Sensor
15:33
DIY Guide: 8 Essential Sensors to Give Your Smart Home Superpowers
23:07
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,3 МЛН
How to Use Arduino Interrupts The Easy Way
33:28
Rachel De Barros
Рет қаралды 79 М.
Getting Started with LIDAR
47:27
DroneBot Workshop
Рет қаралды 1,4 МЛН
SHT20 Waterproof Temperature & Humidity Sensor with Arduino
9:21
Electronic Clinic
Рет қаралды 5 М.
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 90 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 3,2 МЛН
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 989 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,1 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 2,6 МЛН