Detecting metal objects inside tubing