Most often, a metal detector uses a coil of wire with an alternating current in it to create a rapidly changing magnetic field around the coil.
(a metal detector; uses; a coil of wire; T:Most often) (it; to create; a rapidly changing magnetic field)
a metal detector it
uses to create
a coil of wire T:Most often
a rapidly changing magnetic field