Magnetoelastic sensors are widely used for chemical and biological monitoring including measurement of pH, glucose, carbon dioxide, and Escherichia coli by applying a mass- or elasticity-changing coating that shifts the sensor's resonant frequency in response to the target analytes.