sensor factory was refactored