Setup of accelerometer sensing