Calculate Gain And Time Constant For A Sensor