piggy: changing accelerometer to magnetometer