An apparatus, comprising a first chamber; a second chamber; imaging means positioned in the first chamber and configured to image a target area associated with a surface; actuator means configured to bring a sampling element to a sampling position at a first end of the second chamber; wherein the sampling element is configured to sample a substance from the surface when positioned at the sampling position; and control means.