added code to get accelerometer data from ADXL345