Sets up accelerometer sensor listener