Metal detectors for the textile industry