A respiratory monitoring system has been developed for analyzing the carbon dioxide (CO2) and oxygen (O-2) concentrations in the expired air using gas sensors. The data can be used to estimate some medical conditions, including diffusion capability of the lung membrane, oxygen uptake, and carbon dioxide output. For this purpose, a 3-way valve derived from a servomotor was developed, which operates synchronously with human respiratory signals. In particular, the breath analysis system includes an integrated sensor module for valve control, data acquisition through the O-2 and CO2 sensors, and respiratory rate monitoring, as well as software dedicated to analysis of respiratory gasses. In addition, an approximation technique for experimental data based on Haar-wavelet-based decomposition is explored to remove noise as well as to reduce the file size of data for long-term monitoring. (C) 2013 AIP Publishing LLC.