Measures to protect crops from pest attacks