Technology helps farmers protect water quality