This tutorial will show you how to wire and program the BeagleBone Black (BBB) to use SparkFun’s Digital Temperature Sensor BreakoutBoard (TMP102) over I2C. Many thanks to this Arduino example for the inspiration!
First, you might want to see my BBB I2C references if you haven’t used I2C before. It’s simply a two-wire interface that requires SDA and SCL. But you will also need a Vcc wire and a GND (data only communicates on two wires…). Now the TMP102 breakout board is very good at measuring ambient temperature and it’s very sensitive to small changes around it; if I put my hand next to it I can see the temperature rise.