Accelerator Sensor code - WIP