#2 Rotating the sensor according to the orientation