make sensorType default to null