Customize mission planner

I’m a beginner in drones and I am building a drone to spray oil. I wonder how can I customize the mission planner to tell me if the object is found and to spray oil through the mission planner. Thank you!