A new app will encourage farmers to adopt environmentally friendly ways of protecting their crops from pests.