A device for detecting insects on substrates such as lettuce and other leaves. The device has a microscope lens which magnifies a portion of the leaf and send an image of the leaf portion to an image recognition system. If the image recognition system detects the presence of an insect—further steps are taken to remove the insect.