Curve fitting of sensor 6