element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Sensors
  • Technologies
  • More
Sensors
Sensor Forum Temperature sensor accuracy
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Sensors to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 38 replies
  • Subscribers 338 subscribers
  • Views 5278 views
  • Users 0 members are here
  • temperature
  • temperature sensor
Related

Temperature sensor accuracy

ntewinkel
ntewinkel over 1 year ago

Hi all,

I have two temperature sensors near each other, outside. In the winter I was using one to keep track of the nectar temperature in a hummingbird feeder, but I just left it hanging there for the summer.

Here is the typical result:

image

The top line is a dht11 or could be 12. It includes pressure and humidity. The bottom line is a ds18b20 in a metal tube.

Both are digital, but one is nearly always about 1 or 2 degrees higher than the other. Generally it’s fine to give me a close enough idea of what’s going on, but I think I should be more accurate when looking at the freezing point.

Do I need to calibrate them? How would I go about doing that? Ie, what can I trust as a proper baseline? I don’t have access to any really guaranteed kind of thermometer, I think. Thinking 

Thanks in advance for any wisdom you can send my way!

-Nico

  • Sign in to reply
  • Cancel

Top Replies

  • dougw
    dougw over 1 year ago +5 verified
    If they are waterproof you can stick them in a slush of ice and water to get a zero degrees reference. If they aren't waterproof you can put them in a plastic bag in the ice/water mix. If they can take…
  • beacon_dave
    beacon_dave over 1 year ago +5 verified
    Comparing data sheets it looks like the accuracy of the DHT11 is ±2°C whereas the DS18B20 is ±0.5°C It will be interesting to see what your testing shows.
  • wolfgangfriedrich
    wolfgangfriedrich over 1 year ago in reply to dougw +4 verified
    During the ice-water test, you have to be careful not to touch the ice-cubes. They are still colder than zero degC. I learnt this during a thermocouple roadtest.
Parents
  • shabaz
    +1 shabaz over 1 year ago

    Hi Nico,

    If required, these types of boards are quite neat to act as a sort of semi-reference. The accuracy is claimed to be +- 0.1 degrees C within a certain range. I have an older model that claims +- 0.3 degrees C I think.

    They can be accessed via Bluetooth on mobile, and can show historical data as well. Link: https://www.newark.com/sensirion/sht4x-smartgadget/ref-design-board-temp-humidity/dp/74AJ2003 

    image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 1 year ago in reply to shabaz

    Thanks for pointing that out, that's really accurate!
    That would solve the problem of which sensor to trust as a baseline.

    A man with a watch knows what time it is. A man with two watches is never sure Laughing

    I've added it to my wishlist Slight smile

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to ntewinkel
    ntewinkel said:
    that's really accurate!

    Looks like the reference design module uses the SHT40 sensor

    image

    Looks like the accuracy takes a bit of a deviation at around the freezing point, which you are interested in.

    image

    For comparison, the performance plot for the DS18B20 sensor

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 1 year ago in reply to beacon_dave

    From the specs the performance is not much better, it's just different, at zero degrees for the sensor. But I think the problem is, without a reference design, the discrepancy will easily exceed those charts (for instance having the sensor powered up will warm it, or if its on a board then other components or drafts will heat or cool it. I observed that with a SHTxx chip too, where my layout was not the same as the reference board, and the measurement was off by more than the datasheet curve (by about 1-2 degrees from memory). The Sensirion board is their reference design, so should be more accurate - hopefully!

    Edit: This was my layout, but it was not fit for purpose, the measurement was off by several degrees. Subsequently I changed the board shape to more closely reflect the reference design, but I've not tried the new layout yet.

    image

    New layout:

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to shabaz
    shabaz said:
    I changed the board shape to more closely reflect the reference design

    A half-way house might be something more like this

    image

    https://sensirion.com/products/catalog/SHT85

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 1 year ago in reply to beacon_dave

    Interesting! Thanks for that, beacon_dave , that gives me more confidence in the ds sensor I have…. I guess there’s no avoiding science class if I want to verify it Laughing 

    I think shabaz ‘s suggestion is still going to be a very handy reference to have around, given that it’s a complete system and easily portable.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 1 year ago in reply to ntewinkel

    Without the reference design (or comparing against known temperatures) I would have had no easy way to know if my board had a discrepancy. Comparing to that, I could easily see my design had quite a large error. 

    Also, it's worth maybe not powering the sensor permanently. My first board has 3.3V permanently applied, but that's unnecessary, it could be better powered from a GPIO pin, to reduce heating from the power source. 

    Plus, location with respect to other parts. Actually now I look at my (still-incomplete) KiCad project folder, it looks like I aborted having that sensor on the board, i.e. I removed it for the revision 2, simply because of the poor performance in revision 1, after considering proximity to other boards.

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to ntewinkel
    ntewinkel said:
    I guess there’s no avoiding science class if I want to verify it

    Ah, now you are talking...

    Dolbear's law
    https://en.wikipedia.org/wiki/Dolbear%27s_law

    Synthesize a snowy tree cricket chirp to attract snowy tree crickets; then sample their chirp and apply Dolbear's law to get ambient temperature.

    Sorted...

    PS you need to do this before the hummingbird actually eats the 'thermometer cricket'.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 1 year ago in reply to shabaz
    shabaz said:
    Also, it's worth maybe not powering the sensor permanently.

    I was thinking about that when in your previous comment you mentioned the sensor warming up...

    shabaz said:
    having the sensor powered up will warm it

    I'm actually not sure how I have that set up right now. The DHT module is also housed in a little case. well-vented but not in the open like the ds18b20 probe.

    I think, for my purposes, if I can at least get the two sensors to somewhat agree, and have them be somewhat accurate as to when I need to worry about things freezing, then that'll have to be good enough. I think aiming for 0.5 degrees will be enough there.

    I'm planning to carve out some project time soon for this. So far this year there have been too many distractions! Looks like I have to replace an axle on an ATV tomorrow.. how did I get suckered into that? Face palm Shrug Laughing

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 1 year ago in reply to beacon_dave

    I think I've heard a few crickets recently... that'll give me a good starting point. easy peasy Laughing

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to ntewinkel
    ntewinkel said:
    I think I've heard a few crickets recently

    I only have grasshoppers here...

    imageimageimage

    ntewinkel said:
    that'll give me a good starting point. easy peasy

    This should get you going

    https://vanhunteradams.com/Pico/Cricket/Crickets.html

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to ntewinkel
    ntewinkel said:
    Looks like I have to replace an axle on an ATV tomorrow.. how did I get suckered into that?

    Has someone been overdoing the rock picking recently perhaps ? 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to ntewinkel
    ntewinkel said:
    Looks like I have to replace an axle on an ATV tomorrow.. how did I get suckered into that?

    Has someone been overdoing the rock picking recently perhaps ? 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • ntewinkel
    0 ntewinkel over 1 year ago in reply to beacon_dave
    beacon_dave said:
    Has someone been overdoing the rock picking recently perhaps ? 

    Joy

    Well, I DID overdo it the other day and have been too sore to continue haha ouch oops. But this is for the in-laws. We don't even own an ATV!!

    Yesterday I was trying to bleed the brakes on his old truck (yeah I don't even do mechanics on my own vehicles anymore Thinking ), but all the bleeders are rusted in place except one. But it's a bit better. We noticed they were bad when we borrowed the truck a few days ago. Several months ago a brake line broke, so they replaced it and then never bled the air out!! I can't believe they left it like that! We told him to take it to the shop to get the bleeders replaced and get them to flush the fluid at the same time, so that's happening next week.

    Seems as they get older (he's 84 now), they don't want to admit they can't do all the things they did when they were young, so they "start" the project and then "ask for help" which pretty much means we have to do it. We're slowly trying to get them to just take it to the professionals, but ugh, we often still get drawn into it.

    I don't mind the occasional bit of tooling, and I guess it's a good skill to keep up Shrug

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • kmikemoo
    0 kmikemoo over 1 year ago in reply to ntewinkel

    I just hope I make it to 84. Laughing  If I can do anything then, I'll feel victorious!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 1 year ago in reply to kmikemoo

    Laughing yep me too, and I hope I also have the kind of energy they have!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to kmikemoo

    Project 14 theme - 'Help the Aged'  Slight smile

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to ntewinkel

    Perhaps that's because they keep delegating the heavy tasks to others Slight smile

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • DAB
    0 DAB over 1 year ago in reply to kmikemoo

    I am now the oldest surviving male in my family over the last three generations.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • kmikemoo
    0 kmikemoo over 1 year ago in reply to beacon_dave

    beacon_dave If we ever go that route, I've actually got an idea for a project.  That alone is unusual for me. Joy
    I had better write it down - because we know in the moment... I'll for forget what the project was.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • kmikemoo
    0 kmikemoo over 1 year ago in reply to DAB

    DAB Congratulations - sincerely.
    My Dad was concerned about how long he would live.  His Dad died in his mid-fifties and he never knew his grandfather.
    When he was in his early 60's, I reminded him that he was setting a new standard every day.
    He lived to 83 - and a month.  Even in his last months, I would chastise him for chipping ice from his driveway.  "I gotta do something!", he would tell me.
    "I get it, Dad.  Just do something else."

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 1 year ago in reply to kmikemoo
    kmikemoo said:
    I had better write it down - because we know in the moment... I'll for forget what the project was.

    Just need a solution now to help remind you where you wrote it down... Slight smile

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • DAB
    0 DAB 11 months ago in reply to kmikemoo

    Yes, the genes are not necessarily your friend.

    Luckily on my mom's side, the men make it into their 90's, so my wife is hoping I take after that side of the family.

    Still there are extenuating circumstances, my grandfather died at 55, but he lost a leg in WWI and was diabetic but would not eat right.

    My father smoked for 60 years and then wondered why he had stomach cancer.

    My older brother was exposed to agent orange in Vietnam, plus he was in numerous motorcycle accidents. I was very surprised he lived as long as he did.

    So far I am trying to do the right things, keep my weight down, no nasty habits, and other than the heart attack, I am doing ok. I could probably do more, but I am a big believer in the quality of life, so I am not giving up my deserts or scotch any time soon.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube