first port of my dth code to the BBB for use with this sensor