Simplify the compass sensor logic.