A sensor for high-quality two-phase flow