The main aim of the current paper is to create a mathematical model for dual layer shell type recuperation system, which allows reducing the heat losses from the biomass digester and water amount in the biogas without any additional mechanical or chemical components. The idea of this system is to reduce the temperature of the outflowing gas by creating two-layered counter-flow heat exchanger around the walls of biogas digester, thus increasing a thermal resistance and the gas temperature, resulting in a condensation on a colder surface. Complex mathematical model, including surface condensation, is developed for this type of biogas dehumidifier and the parameter study is carried out for a wide range of parameters. The model is reduced to 1D case to make numerical calculations faster. It is shown that latent heat of condensation is very important for the total heat balance and the condensation rate is highly dependent on insulation between layers and outside temperature. Modelling results allow finding optimal geometrical parameters for the known gas flow and predicting the condensation rate for different system setups and seasons.