refactored sensorClient