Metal detectors create a magnetic field by using a brief pulse of electrical current. The magnetic field will be reflected back to the machine if there are any metal objects present, such as a watch or a belt buckle. The return signal is detected by the machine and a beeping noise is produced to alert the TSA agent.