refactoring RotationSensor
refactoring AbstractSensor