Best Temperature/Humidity Sensor For Arduino? Accuracy Test
Вставка
- Опубліковано 4 жов 2024
- 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
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.
That's so cool. I'm glad I could help. Thanks for taking the time to let me know :)
Nice, well explained video ! Great job, thnxs for sharing ! Looking forward to see more... !
Very nice experimentation! Thank you!
Very useful, thanks!
Wow! It was really nice!
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.
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
Awesome video. Nice work and thanks for sharing. This ibformation is valuable for me hahahah
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
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.
@@interlinkknight my tests were done using the ESP32 so 3.3v was not a problem.
Great video, what size resisters did you put between A4-5V and A5-5V ?
3.3K
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!
You are right that the BME280 has pressure sensor too but I don't see how that makes it a better temperature/humidity sensor.
@@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
That's interesting. Yeah, you're right.
@@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.
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
This video is goooold ! I have a question, which one of sensors have fastest sample rate ?
All of them have super fast sample rate. As fast as arduino can send the request, basically. So no problem with that
@@interlinkknight thank you!!!
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.
15 seconds? I read that sensor several times a second and it refresh just fine. No self heating
@@interlinkknight from the datasheet, to change from 0 to 63% humidity it takes 15s. Just open the datasheet
Oh. Interesting
@@interlinkknight see the datasheet
Nice ,video i have a question for you ! is there a difference between AM2315 & AM2305.
I don't know
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?
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
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
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.
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.
May I ask what the "problem" is with SHT21/31?
I could not make my SHT21 module to work at all. I tried, though.
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?
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.
Can you recommend a package that is already assembled and working that I can buy?
Not that I know of
Sir can I use your code in dht11 sensor.
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
Where are you finding the HDC1080 as cheap? They’re not even close to cheap from what I can find.
I bought it on eBay from China. Right now it cost $2 plus shipping
I don't understand how you determined temperature accuracy if you didn't have an accurate sensor to begin with?
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
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
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
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
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
Have you tried putting the HDC1080 in an enclosure and checked its performance? Or is it the same?
Any enclosure will make any sensor delay the update of conditions, so whatever you do, put them as exposed as possible
It is very surprising for me to see how it is still an issue for accurate temperature measurement :/
Does humidity still work after 2 yrs?
I have a bunch of DHT22 that humidity became useless overtime even though temp still works fine
Yes, the HDC1080 sensor is still showing a correct humidity after 3 years
Hi! I've got a doubt: does the HDC0180 use an IR emitter to identifying the data?
IR emitter? I have no idea what are you talking about. I mean, I don't know how they work internally
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?
The sensor that i recommend on the video is the best in my opinion
@@interlinkknight Thanks a lot.
which is better, dht22 or hdc1080 ?
Hdc1080 is much better
DHT20?
Those are not precise enough
@@interlinkknight They're supposed to be the upgraded version of the DHT11 & DHT22 ...
Have you tested? If you did, please share your experience
@@interlinkknight I ordered a couple, still waiting on delivery
Hi!
Between hdc1080 and dht22, which one do you think is more accurate?
Thanks
Hdc1080