A method and apparatus for determining the concentration of chemicals in a gas mixture inside a chamber. A capacitor is exposed to the gas mixture, wherein the gas mixture comprises a dielectric material between the plates of the capacitor. Permittivity of the dielectric is affected by the relative concentrations of the chemical components, and thus a measurement of the capacitance is used to determine the concentration levels of multiple chemical components in the gas mixture.