Smart composting