Fix for thermometers with minValue > 0

Currently app crashes if curValue > (maxValue - minValue)
Merge pull request #1 from mrh-is/patch-1

Fix for thermometers with minValue > 0