mpgmike, I got the sensor to respond to my finger temp difference. Here is the code so far:
Yes, yes, I am prototyping on a Stamp :/
Getting elevated readings on the SHT21Code:' {$STAMP BS2p} ' {$PBASIC 2.0} tf VAR Byte tc VAR Byte rawT VAR Word rawRH VAR Byte PAUSE 250 ' let DEBUG window open DEBUG CLS DEBUG "SHT21 Demo", CR DEBUG "----------", CR Main: I2COUT 0 ,%10000000, [%11100011] PAUSE 50 I2CIN 1 , %10000001, [rawT] DEBUG 2, 0, 3 DEBUG "rawT...... " DEBUG DEC rawT, 11, CR rawT= rawT <<2 tC = (rawT & $fffc) ** 17572 - 4685 DEBUG "Deg C......", DEC tC PAUSE 500 GOTO main
The SHT21 temp says my room is 42°C (107.6°F) Actual temperature is ~ 23.8°C (75°F)
rawT @ 42°C = 111




Bookmarks