Abstract: A device is provided for detection of metal in a moved strand of a highly viscous material such as a mass of chewing gum. A guide trough for the strand is provided, above which an electronic metal detector is disposed, whereby a drop knife is disposed above the guide trough, and a swing valve opens into the floor of the guide trough.