This paper shows the concept and preliminary test of the composting process control with fuzzy logic. The temperature in the compost heap during the process is greater than 80°C. Because wastes of agricultural origin do not require hygienization, part of the heat can by retrieved, which lowers the temperature in the heap to 55°C (this is also the optimum temperature for the composting process). The heat retrieved from a compost heap can be used in another place. Therefore, a composting system was developed in which the aeration rate and heat removal rate can be adjusted. There are two goals of this system: maximising the amount of the heat retrieved from the heap and minimising the duration of the composting process. In the preliminary experiments freshly mown grass with 50 % cabbage was used as the compost material. The results show that the fuzzy logic control system functions correctly with respect to calculations. During the study, a median 90 MJ of heat was produced by the bioreactor; the thermophilic phase was shortened to 12 days. There was also a reduction in the emission of ammonia.