Updated how compass_sensor.c worked