Effect of temperature distribution on moisture flow in porous materials