Datasheet

Wiring Connections:
Tmp102 Pi GPIO
GND PIN 06 (Ground)
SCL PIN 05 (I2C0_SCL)
SDA PIN 03 (I2C0_SDA)
V+ PIN 01 (3V3 Power)
ALT leave disconnected
ADD0 GND
i2cget -y 0 0x48 0x00 w
awk '{print( \
("0x"substr($1,5,2)substr($1,3,1))*0.0625) \
}'
i2cget -y 0 0x48 0x00 w | \
awk '{print( \
("0x"substr($1,5,2)substr($1,3,1))*0.0625) \
}'
#!/bin/bash
i2cget -y 0 0x48 0x00 w | \
awk '{printf("%.2f\n", \
("0x"substr($1,5,2)substr($1,3,1))*0.0625) \
}'
awk '{printf("%.2f\n", (a=( \
"0x"substr($1,5,2)substr($1,3,1))*0.0625 \
chmod +x tmp102.sh
./tmp102.sh