Connection gets invoked. Now the accelerometer and the magnetic field
sensor are used.