A respiratory mask for use in an aircraft is disclosed. In one embodiment, the respiratory mask includes a plurality of sensors for monitoring at least one of cockpit air for parameters capable of affecting oxygen level and health of a crew member health for parameters capable of causing respiratory disorder, and providing associated output signals. Further, the respiratory mask includes a regulator electronically coupled to the sensors. The regulator automatically switches between operating modes to supply respiratory gas to the crew member based on the associated output signals of the plurality of sensors. The operating modes may include a dilution mode, an emergency mode, and a recirculation mode.