Imprecise measurements present universally due to variability in the measurement error. We devised a very simple membership function to evaluate fuzzily the quality of optical sensing with a small dataset, where a normal distribution cannot be assumed. The proposed membership function was further used as a weighting function for non-linear curve fitting under expected mathematical model constraints, namely the membership function-weighted Levenberg–Marquardt (MFW-LM) algorithm. The robustness and effectiveness of the MFW-LM algorithm were demonstrated by an optical-sensing simulation and two practical applications. (1) In laser-absorption spectroscopy, molecular spectral line modeling was greatly improved by the method. The measurement uncertainty of temperature and pressure were reduced dramatically, by 53.3% and 43.5%, respectively, compared with the original method. (2) In imaging, a laser beam-profile reconstruction from heavy distorted observations was improved by the method. As the dynamic range of the infrared camera increased from 256 to 415, the detailed resolution of the laser-beam profiles increased by an amazing 360%, achieving high dynamic-range imaging to capture optical signal details. Therefore, the MFW-LM algorithm provides a robust and effective tool for fitting a proper physical model and precision parameters from low-quality data.