Optimising flow measurement in demanding process conditions