A metal detector is an electronic instrument which detects the presence of metal nearby. Metal detectors are useful for finding metal inclusions hidden within objects, or metal objects buried underground. They often consist of a handheld unit with a sensor probe which can be swept over the ground or other objects. If the sensor comes near a piece of metal this is indicated by a changing tone, or a needle moving on an indicator. Usually the device gives some indication of distance; the closer the metal is, the higher the tone or the higher the needle goes. Another common type are "walk through" metal detectors used for security screening at access points in prisons, courthouses, and airports to detect concealed metal weapons on a person's body.
The simplest form of a metal detector consists of an oscillator producing an alternating current that passes through a coil producing an alternating magnetic field. If a piece of electrically conductive metal is close to the coil, eddy currents will be induced in the metal, and this produces a magnetic field of its own. If another coil is used to measure the magnetic field (acting as a magnetometer), the change in the magnetic field due to the metallic object can be detected.
The first industrial metal detectors were developed in the 1960s and were used extensively for mineral prospecting and other industrial applications. Uses include de-mining (the detection of land mines), the detection of weapons such as knives and guns (especially in airport security), geophysical prospecting, archaeology and treasure hunting. Metal detectors are also used to detect foreign bodies in food, and in the construction industry to detect steel reinforcing bars in concrete and pipes and wires buried in walls and floors.