<p>Apparatus for measuring the composition and flow rate of a fluid (1) comprising a mixture of e.g. oil and water in a pipe (2), wherein an integrated mechanical structure (3) serves as a microwave resonator sensor for providing permittivity measurements and where the mechanical structure also functions as a differential pressure element for providing flow rate measurements.</p>