A device for detecting offending objects such as insects on substrates such as on leaves, plants or in fluid. The device has a microscope lens which magnifies a portion of the substrate and sends an image of the substrate portion to an image recognition system. If the image recognition system detects the presence of an offending object—further steps are taken to remove, neutralize or mark the area where the offending object is located for subsequent action.