Target flow switch: Achieving precise flow measurement in complex fluid environments