The temperature and moisture content are critical to achieve safe wheat storage. The researchers have designed a variety of mathematical models to predict the temperature and moisture content of wheat during ventilation, which generally take a lot of memory and time. The problem can be solved effectively by a new mathematical model based on local heat and mass balance principle and Fortran program. And the proposing of R makes moister transmission closer to the actual condition. The accuracy and feasibility of the model was verified by comparison with the experimental results and it is very significant for the guidance of wheat storage.