The aim of this article is to introduce the control system for heating of small buildings equipped with heat recovery unit and heat pump. The created control system ensures measurement of room temperature, humidity and CO2 concentration. Due to the communication with heat recovery unit and heat pump, the system allows effective control of temperature and CO2 concentration in the building. The system is prepared for future implementation to the cloud application.