Observation of a chemical reaction using a micromechanical sensor