New app to help farmers protect the environment