 Metal detectors were first used for demining, after their invention by the Polish officer Józef Kosacki.His invention, known as the Polish mine detector, was used by the Allies alongside mechanical methods, to clear the German mine fields during the Second Battle of El Alamein when 500 units were shipped to Field Marshal Montgomery's Eighth Army.The Nazis used captured civilians who were chased across minefields to detonate the explosives.