Sigh - thank you for persisting with the reading of Table 5. I had “read” it before but I neglected the portion concerning negative numbers. I did the top few lines, “understood” the pattern and then thought I knew what was going on. The Twos-Complement language was meaningless to me so I assumed (absurdly) that it didn’t matter once I saw the pattern. I’m very new to this and obviously should have looked things up and figured out the whole table. I see now that when you meant really low you meant negative and not close to 0 as I was thinking (lack of imagination). I believe I now understand. Thank you.
I ran 3 tests - 1 at room temp, 1 with the icecube, and 1 with a hair dryer blowing onto the chip (best I can do at the moment). I haven’t yet figured out how to take into account the sign bit progmatically and output the negative number so the “(int)” and “DEC” values are all wrong for those but the bytes are all there for analysis.
The sensor holds stable at room temperature around 1110101 ~117 C I believe?
When I put the bagged ice cube directly on the sensor it stabilizes at 1100110 ~102 C. A 15 C drop in temperature.
When I blow the hair dryer on the sensor something weird happens? The values start dropping dramatically. Eventually into negative territory which I was previously understanding to be super high temperatures.
So it looks to me like the sensor is reading highest at room temperature, lowest at high temperature, and somewhere in between at freezing?
Sorry about the (int) and DEC spam - I was trying to cast the byte into the 2s complement because I read that the int structure already accounted for this but it doesn’t seem to be working as I expected. Let me know if you need me to strip those lines out for readability.
Thanks for the help, and thanks again for being persistent when I’m obviously clueless.
Room Temperature:
bytes available: 2
firstbyte is 1110101
firstbyte as (int) is 117
firstbyte as DEC is 117
secondbyte is 11100000
Concatenated byte is 11101011110
Converted temp is 244.17
bytes available: 2
firstbyte is 1110101
firstbyte as (int) is 117
firstbyte as DEC is 117
secondbyte is 11100000
Concatenated byte is 11101011110
Converted temp is 244.17
bytes available: 2
firstbyte is 1110101
firstbyte as (int) is 117
firstbyte as DEC is 117
secondbyte is 11100000
Concatenated byte is 11101011110
Converted temp is 244.17
bytes available: 2
firstbyte is 1110101
firstbyte as (int) is 117
firstbyte as DEC is 117
secondbyte is 11100000
Concatenated byte is 11101011110
Converted temp is 244.17
bytes available: 2
firstbyte is 1110101
firstbyte as (int) is 117
firstbyte as DEC is 117
secondbyte is 11100000
Concatenated byte is 11101011110
Converted temp is 244.17
bytes available: 2
firstbyte is 1110101
firstbyte as (int) is 117
firstbyte as DEC is 117
secondbyte is 11100000
Concatenated byte is 11101011110
Converted temp is 244.17
bytes available: 2
firstbyte is 1110101
firstbyte as (int) is 117
firstbyte as DEC is 117
secondbyte is 11100000
Concatenated byte is 11101011110
Converted temp is 244.17
bytes available: 2
firstbyte is 1110101
firstbyte as (int) is 117
firstbyte as DEC is 117
secondbyte is 11100000
Concatenated byte is 11101011110
Converted temp is 244.17
bytes available: 2
firstbyte is 1110101
firstbyte as (int) is 117
firstbyte as DEC is 117
secondbyte is 11100000
Concatenated byte is 11101011110
Converted temp is 244.17
bytes available: 2
firstbyte is 1110101
firstbyte as (int) is 117
firstbyte as DEC is 117
secondbyte is 11100000
Concatenated byte is 11101011110
Converted temp is 244.17
Ice Cube:
bytes available: 2
firstbyte is 1100111
firstbyte as (int) is 103
firstbyte as DEC is 103
secondbyte is 1100000
Concatenated byte is 11001110110
Converted temp is 218.08
bytes available: 2
firstbyte is 1100110
firstbyte as (int) is 102
firstbyte as DEC is 102
secondbyte is 11100000
Concatenated byte is 11001101110
Converted temp is 217.17
bytes available: 2
firstbyte is 1100110
firstbyte as (int) is 102
firstbyte as DEC is 102
secondbyte is 1100000
Concatenated byte is 11001100110
Converted temp is 216.27
bytes available: 2
firstbyte is 1100110
firstbyte as (int) is 102
firstbyte as DEC is 102
secondbyte is 11100000
Concatenated byte is 11001101110
Converted temp is 217.17
bytes available: 2
firstbyte is 1100110
firstbyte as (int) is 102
firstbyte as DEC is 102
secondbyte is 11100000
Concatenated byte is 11001101110
Converted temp is 217.17
bytes available: 2
firstbyte is 1100110
firstbyte as (int) is 102
firstbyte as DEC is 102
secondbyte is 11100000
Concatenated byte is 11001101110
Converted temp is 217.17
bytes available: 2
firstbyte is 1100110
firstbyte as (int) is 102
firstbyte as DEC is 102
secondbyte is 11100000
Concatenated byte is 11001101110
Converted temp is 217.17
bytes available: 2
firstbyte is 1100110
firstbyte as (int) is 102
firstbyte as DEC is 102
secondbyte is 11100000
Concatenated byte is 11001101110
Converted temp is 217.17
bytes available: 2
firstbyte is 1100110
firstbyte as (int) is 102
firstbyte as DEC is 102
secondbyte is 11100000
Concatenated byte is 11001101110
Converted temp is 217.17
bytes available: 2
firstbyte is 1100110
firstbyte as (int) is 102
firstbyte as DEC is 102
secondbyte is 11100000
Concatenated byte is 11001101110
Converted temp is 217.17
bytes available: 2
firstbyte is 1100110
firstbyte as (int) is 102
firstbyte as DEC is 102
secondbyte is 11100000
Concatenated byte is 11001101110
Converted temp is 217.17
Hair Dryer
bytes available: 2
firstbyte is 1110100
firstbyte as (int) is 116
firstbyte as DEC is 116
secondbyte is 11100000
Concatenated byte is 11101001110
Converted temp is 242.38
bytes available: 2
firstbyte is 1110101
firstbyte as (int) is 117
firstbyte as DEC is 117
secondbyte is 1100000
Concatenated byte is 11101010110
Converted temp is 243.27
bytes available: 2
firstbyte is 1110110
firstbyte as (int) is 118
firstbyte as DEC is 118
secondbyte is 1100000
Concatenated byte is 11101100110
Converted temp is 245.08
bytes available: 2
firstbyte is 1101110
firstbyte as (int) is 110
firstbyte as DEC is 110
secondbyte is 11100000
Concatenated byte is 11011101110
Converted temp is 231.58
bytes available: 2
firstbyte is 1110111
firstbyte as (int) is 119
firstbyte as DEC is 119
secondbyte is 11100000
Concatenated byte is 11101111110
Converted temp is 247.77
bytes available: 2
firstbyte is 1011010
firstbyte as (int) is 90
firstbyte as DEC is 90
secondbyte is 100000
Concatenated byte is 10110100010
Converted temp is 194.22
bytes available: 2
firstbyte is 1010000
firstbyte as (int) is 80
firstbyte as DEC is 80
secondbyte is 11010000
Concatenated byte is 10100001101
Converted temp is 177.46
bytes available: 2
firstbyte is 100101
firstbyte as (int) is 37
firstbyte as DEC is 37
secondbyte is 1110000
Concatenated byte is 1001010111
Converted temp is 99.39
bytes available: 2
firstbyte is 11101
firstbyte as (int) is 29
firstbyte as DEC is 29
secondbyte is 10100000
Concatenated byte is 111011010
Converted temp is 85.32
bytes available: 2
firstbyte is 11000
firstbyte as (int) is 24
firstbyte as DEC is 24
secondbyte is 10010000
Concatenated byte is 110001001
Converted temp is 76.21
bytes available: 2
firstbyte is 10010
firstbyte as (int) is 18
firstbyte as DEC is 18
secondbyte is 1110000
Concatenated byte is 100100111
Converted temp is 65.19
bytes available: 2
firstbyte is 1100
firstbyte as (int) is 12
firstbyte as DEC is 12
secondbyte is 11100000
Concatenated byte is 11001110
Converted temp is 55.18
bytes available: 2
firstbyte is 1000
firstbyte as (int) is 8
firstbyte as DEC is 8
secondbyte is 1100000
Concatenated byte is 10000110
Converted temp is 47.08
bytes available: 2
firstbyte is 11
firstbyte as (int) is 3
firstbyte as DEC is 3
secondbyte is 11000000
Concatenated byte is 111100
Converted temp is 38.75
bytes available: 2
firstbyte is 11111111
firstbyte as (int) is 255
firstbyte as DEC is 255
secondbyte is 11100000
Concatenated byte is 111111111110
Converted temp is 492.57
bytes available: 2
firstbyte is 11111011
firstbyte as (int) is 251
firstbyte as DEC is 251
secondbyte is 10110000
Concatenated byte is 111110111011
Converted temp is 485.04
bytes available: 2
firstbyte is 11111000
firstbyte as (int) is 248
firstbyte as DEC is 248
secondbyte is 11000000
Concatenated byte is 111110001100
Converted temp is 479.75
bytes available: 2
firstbyte is 10
firstbyte as (int) is 2
firstbyte as DEC is 2
secondbyte is 1110000
Concatenated byte is 100111
Converted temp is 36.39
bytes available: 2
firstbyte is 11111110
firstbyte as (int) is 254
firstbyte as DEC is 254
secondbyte is 11100000
Concatenated byte is 111111101110
Converted temp is 490.77
bytes available: 2
firstbyte is 11111010
firstbyte as (int) is 250
firstbyte as DEC is 250
secondbyte is 11000000
Concatenated byte is 111110101100
Converted temp is 483.35
bytes available: 2
firstbyte is 11101000
firstbyte as (int) is 232
firstbyte as DEC is 232
secondbyte is 11100000
Concatenated byte is 111010001110
Converted temp is 451.17
bytes available: 2
firstbyte is 11100110
firstbyte as (int) is 230
firstbyte as DEC is 230
secondbyte is 1100000
Concatenated byte is 111001100110
Converted temp is 446.67
bytes available: 2
firstbyte is 11100011
firstbyte as (int) is 227
firstbyte as DEC is 227
secondbyte is 1110000
Concatenated byte is 111000110111
Converted temp is 441.39