Add handling for the result of auto_planting function call