Approximately one-third of all annual food production in the world is lost or wasted. This supposes a serious problem for the society in which we live since it aspires to a circular economy model. Compost appears as a possible solution to palliate this problem, which helps take advantage of the nutrients from organic waste to convert them into fertilizer for plants. Sometimes, unbalance of the parameters in the composting process produces poor quality compost. In this work, an IoT system has been developed to monitor in real time the temperature and humidity of a compost pile at different heights to help obtain the best quality of the compost.