There are several types of detection methods , but basically an electromagnetic signal is sent from the search coil, it hits the metal and return back to detector , the shift in the frequency is measured.