thisdavej / ds18b20-raspi

Get temperature readings from a DS18B20 1-Wire sensor connected to a Raspberry Pi
MIT License
17 stars 4 forks source link

temp returns as freezing #4

Closed pcnate closed 5 years ago

pcnate commented 5 years ago

Sometimes when a sensor is disconnected or connected it will return 0C and 32F. It should return null if there is any way to detect that the data is messed up

thisdavej commented 5 years ago

Thanks for submitting this issue, @pcnate. I was able to reproduce the "freezing temp" you were experiencing using a ds18b20 sensor on my side. The problem should be fixed with this latest release.

pcnate commented 5 years ago

Awesome. I'll get it tested