Get orientation from sensor