DHT22 C code for Beaglebone