Implementing onPair and onConnect
Implementing accelerometer and gyroscope