refactoring RotationSensor