A system for providing oxygen includes an oxygen generating device, configured to provide oxygenated air, a monitor of a condition of the air provided by the oxygen generating device, a backup oxygen supply, and an automatic switch. The automatic switch is configured to activate the backup oxygen supply and block air from the oxygen generating device when the monitor detects a failure of the condition of the air provided by the oxygen generating device. The system can be used for providing backup oxygen in an aircraft.