Residue prevention in humidifiers and air conditioners