Port Adafruit's Arduino Sensor libraries to Beagle Bone and Raspberry Pi