A filter for a respiratory air analyzer includes a filter housing, a converter material, and a sensor arranged in the filter housing. The converter material is arranged in the filter housing between a gas inlet opening and a gas outlet opening. The sensor has a first electrode and a second electrode that are configured to record a characteristic of at least a part of the converter material that is arranged between the first and second electrodes.