Drones and sensors are helping farmers optimize water and fertilizer use.