Metal detectors work on the principle that any metal will reflect electromagnetic waves at a certain frequency. Different metals have different frequencies, so by transmitting a known frequency and listening for reflections, you can determine the presence of a specific metal.