Because they're constant, a temperature offset is easy to fix by adding or subtracting it from the reported
temperature. The TMP117 will manage this for you by allowing you to set the offset amount which is then
added to the measured temperature before it is reported to you. If the sensor says itself 43 degrees but
you know from other sources that it is actually 40 degrees, setting an offset of -3 will account for it. After
setting the offset, the TMP117 will take the measured 43 degrees, add -3 to it to account for the offset
before reporting the adjusted value to you.
Temperature thresholds
Measuring temperature is all well and good, everyone needs to know the temperature at some point, but
usually you want to know the temperature not out of pure curiosity but because you want to do something
differently depending on what the temperature is. If it's colder than 60ºF degrees outside, you probably
want to wear a hoodie. If instead it's -10ºC and you're in Saskatoon, you probably want to think about
putting on an extra pair of dungarees.
The clever people at Texas Instruments were smart enough to predict this important decision point and
they added high and low temperature thresholds to the TMP117. This allows you to delegate this decision
to it and let it make decisions on your behalf. Most people may be hesitant to allow a machine to make
such an important pants-related decision, however unlike your friend Joe who is well meaning but
inattentive, the TMP117 won't get distracted by other stuff. All it's doing is sitting there, doing its part as a
cog in the machine, measuring, reporting, and if appropriate, acting on the temperature.
By setting the high and low temperature thresholds, the TMP117 can then tell you when either threshold is
exceeded. If you know you always wear pants when the temperature is below 60 degrees, set the low
temperature threshold to 60 degrees and let the TMP117 tell you when it's time for pants.
If like me you also believe that wearing pants when the temperature is above 75 degrees is tepidly
tyrannical, you may then also wish to set a high temperature threshold that well tell you when it's time to
release the bonds of your pants and be free of their stifling embrace.