Pulmonary edema is a condition in which the lungs fill with fluid. When this occurs, the body struggles to get enough oxygen, often resulting in breathlessness, coughing, excessive sweating, and bluish skin or lips.