PaulStoffregen / OneWire

Library for Dallas/Maxim 1-Wire Chips
http://www.pjrc.com/teensy/td_libs_OneWire.html
579 stars 382 forks source link

Bad values reading DS18B20 below 0 degrees #18

Closed Humancell closed 8 years ago

Humancell commented 8 years ago

Hello,

I've just installed a 1-Wire probe in a deep freezer, and it's below zero ... but the numbers coming back from the sensor are WAY below zero? Using your temperature example, it's showing -20.37C ... but that seems WAY too cold for a basic household freezer.

I found this link that seems to indicate the example is not accounting for the switch below 0C?

Froosh commented 8 years ago

That sounds about right.

'Normal' freezer temp should be around -18C, so a deep freeze intended to store food for longer should be colder.

My fridge/freezer is showing -18.32C at the moment.

On 13 Apr 2016, at 7:49 AM, Scott C. Lemon notifications@github.com wrote:

Hello,

I've just installed a 1-Wire probe in a deep freezer, and it's below zero ... but the numbers coming back from the sensor are WAY below zero? Using your temperature example, it's showing -20.37C ... but that seems WAY too cold for a basic household freezer.

I found this link that seems to indicate the example is not accounting for the switch below 0C?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub

PaulStoffregen commented 8 years ago

Please compare against another known-good sensor.

I'm closing this issue. Please only open issues here if you have done the work to confirm the problem. Comparing to another sensor is the bare minimum!

Humancell commented 8 years ago

You are correct, and I apologize. The other thermometer that was being used appears to "stick" just below 20F ... which is what threw us off. After checking a mercury thermometer it really is at ~-10F ...

Sorry ... our error.