Metal detectors and x-ray machines