Systems for optical analysis use vacuum chambers, where low pressures are reached. Remaining water molecules are the prevalent contaminant in high vacuum chambers. For this reason measurement of water levels is an important task that allows correct equipment operation. In this work, a different approach is presented for detecting and quantifying the water molecules inside a the vacuum chamber used in optical systems. A zeolite coated quartz crystal microbalance is used for detecting the water molecules, and the change in the resonance frequency is measured using a novel technique known as the principle of rational approximations. Theoretical results show how nanograms of adsorbed molecules are measured, and the number of molecules are quantified.