Guaranteed accuracy in water quality measurements