In advanced stages, heart failure can lead to a persistent cough that may include mucus or blood.