Pulmonary edema is a condition caused by excess fluid in the lungs. This fluid collects in the numerous air sacs in the lungs, making it difficult to breathe. In most cases, heart problems cause pulmonary edema. But fluid can accumulate for other reasons, including pneumonia, exposure to certain toxins