How to optimize the calibration error of a target flow switch?