A metal detector is an electronic instrument that identifies the presence of metal by using an electromagnetic field. It works by emitting an electromagnetic field and detecting changes in that field caused by the presence of metal objects. These changes are then processed to indicate the presence, and sometimes the approximate location and size, of the metal.