Knowing about the presence of certain type of insects at an early stage is crucial to prevent a plague that can ruin you crops, especially inside greenhouses.
Usually the task is taken care by a human in the field to detect the presence of those pests to implement the adequate prevention mesures.
This is a time consuming and subjective approach that I believe could be solved by Farmbot, if you incorporate sensors capable of identifying insect type and quantity, logging and notifying them for human action(for now).
I believe you could use the technology described here. It’s made with cheap sensors and can even distinguish if the insect is male or female.