Best Temperature/Humidity Sensor For Arduino? Accuracy Test

  Рет қаралды 51,249

InterlinkKnight

InterlinkKnight

Күн бұрын

Are you looking for the best temperature and humidity sensor for arduino? If so, this video is for you.
Video sponsored by www.pcbgogo.com?code=y offering low cost with high-quality PCB prototype and PCB assembly service.
I tested the most popular sensors available in the search for the best and I also provide example sketches for arduino to serve as a tutorial since I wrote a lot of comments explaining the code.
Sensors considered:
DHT11
DHT12
DHT22/AM2302
AM2320
AM2322
HDC1080
BME280
LM35DZ
SI7021/SHT21/HTU21
HTU21D
SHT31
Buy my top sensor:
Buy HDC1080 amzn.to/2Thc7tv
Buy Arduino nano: amzn.to/3iru0op
Buy OLED 0.96" I2C: amzn.to/2UNDCLO
Buy 75% humidity calibration kit: amzn.to/2LAnUAO
Buy 32% humidity calibration kit: amzn.to/352Ny9d
Recommended Tools:
Electronic Parts Tester (ESR LCR-T4): amzn.to/2QvQJlP
Breadboard (good quality): amzn.to/2QsyY3C
Storage Case for Jumper Wire: www.walmart.co...
Multimeter (Fluke 17B+): amzn.to/2L3PNQk
Rigol DS1054Z Digital Oscilloscope: amzn.to/2C5ZwD7
Note: As an Amazon Associate I earn from qualifying purchases.
Arduino sketches:
Arduino sketch for HDC1080 with serial monitor: drive.google.c...
Arduino sketch for HDC1080 with OLED 0.96": drive.google.c...
Website: www.interlinkk...
Patreon: / interlinkknight

Пікірлер: 71
@erickcampos50
@erickcampos50 3 жыл бұрын
I came back to thank you for the tip about using a salt solution to create an environment with controlled humidity. This made me look for more information about this phenomenon, which until then was totally unknown to me. It was a fantastic dose of science and made me spend the night doing some really fun experiments.
@interlinkknight
@interlinkknight 3 жыл бұрын
That's so cool. I'm glad I could help. Thanks for taking the time to let me know :)
@PhG1961
@PhG1961 5 жыл бұрын
Nice, well explained video ! Great job, thnxs for sharing ! Looking forward to see more... !
@kubectlgetpo
@kubectlgetpo 4 жыл бұрын
Very nice experimentation! Thank you!
@sergiourquijo4000
@sergiourquijo4000 3 жыл бұрын
Awesome video. Nice work and thanks for sharing. This ibformation is valuable for me hahahah
@erickcampos50
@erickcampos50 3 жыл бұрын
Wow! It was really nice!
@mohammadr797
@mohammadr797 5 жыл бұрын
I think BME280 is a pressure sensor and the purpose of the combination with humidity and temperature part was for pressure error compensations regarding to this the hdc1080 is just humidity sensor and also in the humidity sensors the temperature sensor is for humidity error compensation!
@interlinkknight
@interlinkknight 5 жыл бұрын
You are right that the BME280 has pressure sensor too but I don't see how that makes it a better temperature/humidity sensor.
@mohammadr797
@mohammadr797 5 жыл бұрын
@@interlinkknight You are right too! But I mean the BME280 is a pressure sensor intrinsically not humidity or temperature they put the humidity and temperature sensor in one package to use them for sensor fusion and obtain higher accuracy of pressure sensor and probably no need for higher accuracy temperature or humidity sensor. As well as temperature sensor is to achieve better accuracy in humidity sensors! You need to use temperature sensor data for compensating humidity sensors output and the output of both use to achieve higher accuracy in pressure sensor's output! not vice versa
@interlinkknight
@interlinkknight 5 жыл бұрын
That's interesting. Yeah, you're right.
@navca
@navca 5 жыл бұрын
@@mohammadr797 BME280s are very common in altimeters. Temperature and humidity are used to calculate air density. Then, you can calculate a new elevation given a known pressure at certain elevation. This can be obtained from a calibration knowing your altitude from GPS or a map, or getting sea level pressure from online data.
@Reptex_cs
@Reptex_cs Жыл бұрын
Very useful, thanks!
@davegonzales617
@davegonzales617 4 жыл бұрын
Thanks for the video, one question is I would like to see your setup as a whole, How did you connect the sensor, oled, batttery used etc.... can you share that. I like the set up and would appreciate to see the entire circuit please.
@interlinkknight
@interlinkknight 4 жыл бұрын
You can see it on the video. Also the connections are in the comments on the top of the example sketch. It's I2C so is pretty straight forward with 2 pins connecting to the display and the sensor. I have a tutorial about the this display that also shows the connection
@dwpetty3723
@dwpetty3723 5 жыл бұрын
Great video, what size resisters did you put between A4-5V and A5-5V ?
@interlinkknight
@interlinkknight 5 жыл бұрын
3.3K
@Yuēhàn24
@Yuēhàn24 5 жыл бұрын
Hi, I have done the same tests using various sensors, The one I found most accurate was the SHT21 according to the manufactures datasheets its about the same specifications as the HDC1080
@interlinkknight
@interlinkknight 5 жыл бұрын
I bought a SHT21 long a go to test and it simply didn't work. It's 3.3V and tried using resistors to step down the voltage but it didn't work. That's why I didn't include it on my tests.
@Yuēhàn24
@Yuēhàn24 4 жыл бұрын
@@interlinkknight my tests were done using the ESP32 so 3.3v was not a problem.
@poepflater
@poepflater 4 жыл бұрын
Had a bit of a struggle until I figured they need 5V and not 3.3V, bought two units and they read within .02C of each other most of the time
@TurbidSugar19
@TurbidSugar19 3 жыл бұрын
This video is goooold ! I have a question, which one of sensors have fastest sample rate ?
@interlinkknight
@interlinkknight 3 жыл бұрын
All of them have super fast sample rate. As fast as arduino can send the request, basically. So no problem with that
@TurbidSugar19
@TurbidSugar19 3 жыл бұрын
@@interlinkknight thank you!!!
@sibinks7246
@sibinks7246 4 жыл бұрын
Nice ,video i have a question for you ! is there a difference between AM2315 & AM2305.
@interlinkknight
@interlinkknight 4 жыл бұрын
I don't know
@ugurcakir7970
@ugurcakir7970 4 жыл бұрын
Hi, thanks for the great video. Do you think these sensors can be used in a wearable device (bracelet for example) to measure body temperature? Which material can I use to make connection with skin?
@interlinkknight
@interlinkknight 4 жыл бұрын
These are air temperature sensors so I don't recommend them for contact measurements. Sadly I don't know much about contact sensors, but I'm sure there are
@abidbaloch7490
@abidbaloch7490 Жыл бұрын
Sir can I use your code in dht11 sensor.
@interlinkknight
@interlinkknight Жыл бұрын
You could adapt it to use any sensor, yes. Obviously you need to replace the part of the sensor and library with the DHT11 examples. So basically join my example sketch with a DHT11 example sketch
@supardimasrun6510
@supardimasrun6510 4 жыл бұрын
The problem with this video is only 1. The HDC1080 is good but the respose time is 15s according to the datasheet. The best choice for me is BME280 because the response time is only 1s. That's is to good enough for a humidity sensor, because of the other has 5s response time average.
@interlinkknight
@interlinkknight 4 жыл бұрын
15 seconds? I read that sensor several times a second and it refresh just fine. No self heating
@supardimasrun6510
@supardimasrun6510 4 жыл бұрын
@@interlinkknight from the datasheet, to change from 0 to 63% humidity it takes 15s. Just open the datasheet
@interlinkknight
@interlinkknight 4 жыл бұрын
Oh. Interesting
@supardimasrun6510
@supardimasrun6510 4 жыл бұрын
@@interlinkknight see the datasheet
@erhimc
@erhimc 4 жыл бұрын
Can you recommend a package that is already assembled and working that I can buy?
@interlinkknight
@interlinkknight 4 жыл бұрын
Not that I know of
@jangAckman
@jangAckman 4 жыл бұрын
May I ask what the "problem" is with SHT21/31?
@interlinkknight
@interlinkknight 4 жыл бұрын
I could not make my SHT21 module to work at all. I tried, though.
@pgmredstone
@pgmredstone 6 ай бұрын
thank you for the video. I don't understand what you exactly mean by calibrating the device. how do you adjust the delta that occurs after a while if want to use the device in production and do not know the actual RH?
@interlinkknight
@interlinkknight 6 ай бұрын
You need to use a known reference. There are special products to calibrate humidity sensors. There's also a trick using salt and water in a sealed bag. Search about calibrating hygrometers and you'll see what I mean.
@DavidStaMaria-tf6my
@DavidStaMaria-tf6my 3 жыл бұрын
Have you tried putting the HDC1080 in an enclosure and checked its performance? Or is it the same?
@interlinkknight
@interlinkknight 3 жыл бұрын
Any enclosure will make any sensor delay the update of conditions, so whatever you do, put them as exposed as possible
@rayprada8398
@rayprada8398 2 жыл бұрын
Does humidity still work after 2 yrs? I have a bunch of DHT22 that humidity became useless overtime even though temp still works fine
@interlinkknight
@interlinkknight 2 жыл бұрын
Yes, the HDC1080 sensor is still showing a correct humidity after 3 years
@bbrendon
@bbrendon 4 жыл бұрын
I don't understand how you determined temperature accuracy if you didn't have an accurate sensor to begin with?
@interlinkknight
@interlinkknight 4 жыл бұрын
I just compare all of them against each other, which were consistent. For the self-heat test I put 2 sensors at a time in a close area, well isolated, and write the first few readings compared to a reading after 1 hour. After many times, using different modules, a pattern is clear and some sensors show significant increase compared to other models. It's not scientific, but I spend almost a year to test everything
@icreate1592
@icreate1592 3 жыл бұрын
Do you have an idea on how to interface multiple HDC1080 sensors in an arduino? is it possible? like example, 13pcs of hdc1080 sensor in one arduino? do you have an idea on how to implement it on the arduino sketch and also the circuit diagram? thanks in advance.. good day sir.. btw, thanks for this video
@interlinkknight
@interlinkknight 3 жыл бұрын
Something that comes to mind is using a transistor on each sensor to be able to turn on and off one at a time, so you could read each sensor one at a time in a cycle. I never done this, though
@icreate1592
@icreate1592 3 жыл бұрын
based on my research, the i2c bus can handle up to 128 slave devices theoretically. but i don't have any idea on how to implement it on the code, or how to address individual hdc1080, also the pull-up resistors value.. anyway, thanks again sir
@interlinkknight
@interlinkknight 3 жыл бұрын
The problem is that you would need each device to have different address, and all HDC1080 modules have the same address. The pull-up resistor can be 5k, but if you are joining so many i2c devices, you don't need any additional pull-up resistor because those modules already have them
@gjb.80
@gjb.80 Жыл бұрын
Where are you finding the HDC1080 as cheap? They’re not even close to cheap from what I can find.
@interlinkknight
@interlinkknight Жыл бұрын
I bought it on eBay from China. Right now it cost $2 plus shipping
@awantrik9309
@awantrik9309 2 жыл бұрын
which is better, dht22 or hdc1080 ?
@interlinkknight
@interlinkknight 2 жыл бұрын
Hdc1080 is much better
@caffeinatedinsanity2324
@caffeinatedinsanity2324 4 жыл бұрын
The AM2320 is a good all-rounder for a starter in my opinion. Cheaper than the DHT22 and seems about as accurate if not the same. For comparison, the AM2320 costa like 6$ CAD on Digikey while the DHT22 doesn't go below 10$ CAD. The HDC1080 can be found for 7$ on digikey, but only as the core unit, meaning soldering needs to be done (not to mention it's an SMD package). I haven't checked if there were breakouts available on that website
@interlinkknight
@interlinkknight 4 жыл бұрын
I buy them on ebay and the HDC1080 module (like the one i use on the video) is currently at $4.36 with free shipping.
@caffeinatedinsanity2324
@caffeinatedinsanity2324 4 жыл бұрын
You can actually buy an HDC1080 breakout on digikey for 12$ CAD, which is about the same price as the DHT22. So far there's only one that I know I wouldn't use for measuring humidity: the DHT11 (no joke it's fucking garbage). Compared it side by side with the DHT22 and it is VERY OFF in its humidity measurements. Temperature is fine, but you can buy over 2 ds18b20 temperature sensors for the same price.
@arthurpamplona5598
@arthurpamplona5598 4 жыл бұрын
Hi! I've got a doubt: does the HDC0180 use an IR emitter to identifying the data?
@interlinkknight
@interlinkknight 4 жыл бұрын
IR emitter? I have no idea what are you talking about. I mean, I don't know how they work internally
@alexmancera3298
@alexmancera3298 5 жыл бұрын
Hello, I have a question for you, I have a project in which I have to raise humidity lets say 10%, If initial reading is wrong (for example real Hum is 45% and sensor say 50, 69, 30%) I don't care, but the humidity applied in excess must be quite accurate, de you have any idea If the sensors you tested can do the job?
@interlinkknight
@interlinkknight 5 жыл бұрын
The sensor that i recommend on the video is the best in my opinion
@alexmancera3298
@alexmancera3298 4 жыл бұрын
@@interlinkknight Thanks a lot.
@3nertia
@3nertia 2 жыл бұрын
DHT20?
@interlinkknight
@interlinkknight 2 жыл бұрын
Those are not precise enough
@3nertia
@3nertia 2 жыл бұрын
@@interlinkknight They're supposed to be the upgraded version of the DHT11 & DHT22 ...
@interlinkknight
@interlinkknight 2 жыл бұрын
Have you tested? If you did, please share your experience
@3nertia
@3nertia 2 жыл бұрын
@@interlinkknight I ordered a couple, still waiting on delivery
@stanTrX
@stanTrX 3 жыл бұрын
It is very surprising for me to see how it is still an issue for accurate temperature measurement :/
@yogap.4701
@yogap.4701 4 жыл бұрын
Hi! Between hdc1080 and dht22, which one do you think is more accurate? Thanks
@interlinkknight
@interlinkknight 4 жыл бұрын
Hdc1080
BME280 Vs. DHT22 Temperature Sensor Shootout as Tested on the TTGO T-Display ESP32
10:53
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
How to test relative humidity sensors
9:32
Science in Hydroponics
Рет қаралды 13 М.
I tried the 3 Cheapest Arduino Alternatives! (That you Suggested)
13:21
Physics of humidity
15:16
Texas Instruments
Рет қаралды 4,3 М.
SHT20 Waterproof Temperature & Humidity Sensor with Arduino
9:21
Electronic Clinic
Рет қаралды 8 М.
DHT11/DHT22 Temperature and Humidity Sensor with Arduino
4:07
technolab creation
Рет қаралды 8 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН