 This trial will be performed in two intensive care units ICUs. After randomization, all patients in the intervention group will undergo daily lung ultrasounds before the next spontaneous breathing trial. The results from the lung ultrasound will indicate specific interventions to facilitate weaning: 