working principle of metal detector and meganetic separator

working principle of metal detector and meganetic separator