A ventilator is a machine that helps a patient breathe by giving oxygen through a tube.