A system that incorporates teachings of the present disclosure may include, for example, a sensor having a pulse oximeter sensor to measure an oxygen saturation level in a liquid, a magnetic source coupled to the pulse oximeter sensor, and a controller to control the pulse oximeter sensor and the magnetic source, and to measure a mechanical effect on the liquid responsive to the magnetic source applying a magnetic field to the liquid.