The paper is focused on the developing a predictive mathematical model for describing thermodynamic processes connected with the moist air depressurization in vacuum chambers. Equations of the mathematical description are based on principles of the energy and mass conservation, which are complemented by the moist air thermodynamics, the state behavior of water and vapor, including principles of the critical flow. The described problem has been solved using the MATLAB software. In the paper, two cases are applied and discussed: the vacuum drying and the specimen chamber of an environmental scanning electron microscope. The specific requirements are especially important for environmental scanning electron microscopes, where it is possible to observe samples, which contain water, in their natural condition. If the air pressure, temperature and humidity do not have suitable values, observed sample may be dried or damaged.