refactoring AbstractSensor
fix build