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

КОМЕНТАРІ • 71

  • @erickcampos50
    @erickcampos50 3 роки тому +12

    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 роки тому +2

      That's so cool. I'm glad I could help. Thanks for taking the time to let me know :)

  • @PhG1961
    @PhG1961 4 роки тому +6

    Nice, well explained video ! Great job, thnxs for sharing ! Looking forward to see more... !

  • @kubectlgetpo
    @kubectlgetpo 3 роки тому +1

    Very nice experimentation! Thank you!

  • @Reptex_cs
    @Reptex_cs Рік тому

    Very useful, thanks!

  • @erickcampos50
    @erickcampos50 3 роки тому

    Wow! It was really nice!

  • @davegonzales617
    @davegonzales617 4 роки тому +3

    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 роки тому +1

      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

  • @sergiourquijo4000
    @sergiourquijo4000 3 роки тому +1

    Awesome video. Nice work and thanks for sharing. This ibformation is valuable for me hahahah

  • @Yuēhàn24
    @Yuēhàn24 4 роки тому +2

    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  4 роки тому

      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.

  • @dwpetty3723
    @dwpetty3723 4 роки тому +4

    Great video, what size resisters did you put between A4-5V and A5-5V ?

  • @mohammadr797
    @mohammadr797 4 роки тому

    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  4 роки тому

      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 4 роки тому

      @@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  4 роки тому +1

      That's interesting. Yeah, you're right.

    • @navca
      @navca 4 роки тому +2

      @@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.

  • @poepflater
    @poepflater 3 роки тому

    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

  • @ebeb9156
    @ebeb9156 3 роки тому

    This video is goooold ! I have a question, which one of sensors have fastest sample rate ?

    • @interlinkknight
      @interlinkknight  3 роки тому +1

      All of them have super fast sample rate. As fast as arduino can send the request, basically. So no problem with that

    • @ebeb9156
      @ebeb9156 3 роки тому

      @@interlinkknight thank you!!!

  • @supardimasrun6510
    @supardimasrun6510 3 роки тому

    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  3 роки тому

      15 seconds? I read that sensor several times a second and it refresh just fine. No self heating

    • @supardimasrun6510
      @supardimasrun6510 3 роки тому

      @@interlinkknight from the datasheet, to change from 0 to 63% humidity it takes 15s. Just open the datasheet

    • @interlinkknight
      @interlinkknight  3 роки тому

      Oh. Interesting

    • @supardimasrun6510
      @supardimasrun6510 3 роки тому

      @@interlinkknight see the datasheet

  • @sibinks7246
    @sibinks7246 4 роки тому +1

    Nice ,video i have a question for you ! is there a difference between AM2315 & AM2305.

  • @ugurcakir7970
    @ugurcakir7970 3 роки тому +1

    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  3 роки тому +1

      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

  • @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 роки тому +1

      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.

  • @jangAckman
    @jangAckman 4 роки тому +2

    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 2 місяці тому

    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  2 місяці тому

      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.

  • @erhimc
    @erhimc 4 роки тому +2

    Can you recommend a package that is already assembled and working that I can buy?

  • @abidbaloch7490
    @abidbaloch7490 Рік тому +1

    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

  • @KingErasmos
    @KingErasmos 9 місяців тому

    Where are you finding the HDC1080 as cheap? They’re not even close to cheap from what I can find.

    • @interlinkknight
      @interlinkknight  9 місяців тому

      I bought it on eBay from China. Right now it cost $2 plus shipping

  • @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 роки тому +3

      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 роки тому +1

      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 роки тому +1

      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

  • @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

  • @stanTrX
    @stanTrX 3 роки тому +1

    It is very surprising for me to see how it is still an issue for accurate temperature measurement :/

  • @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

  • @arthurpamplona5598
    @arthurpamplona5598 3 роки тому

    Hi! I've got a doubt: does the HDC0180 use an IR emitter to identifying the data?

    • @interlinkknight
      @interlinkknight  3 роки тому +1

      IR emitter? I have no idea what are you talking about. I mean, I don't know how they work internally

  • @alexmancera3298
    @alexmancera3298 4 роки тому

    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  4 роки тому

      The sensor that i recommend on the video is the best in my opinion

    • @alexmancera3298
      @alexmancera3298 4 роки тому

      @@interlinkknight Thanks a lot.

  • @awantrik9309
    @awantrik9309 2 роки тому

    which is better, dht22 or hdc1080 ?

  • @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

  • @yogap.4701
    @yogap.4701 4 роки тому

    Hi!
    Between hdc1080 and dht22, which one do you think is more accurate?
    Thanks