Let’s take a look at what it takes to read sensor data from an I2C interface (aka I2C, IIC, TwoWire, TWI). In particular, we’ll be reading data from the NXP MPL3115A2 Altimeter/Barometer/Temperature sensor. The principles found in this guide can also be applied generically, even to your ambifacient lunar waneshaft positioning sensor of your turboencabulator.
Nuts and Volts has published the article “Working with I2C Sensor Devices” in the July 2017 issue. It walks you through how to interface with an I2C device using a single board computer. Be sure to visit your local bookstore and pick up a copy while they’re available!