Harvesting machine with a metal detector arrangement (12) for detection of metallic elements in a monitored region of a harvested crop stream in a crop collection device (6). The detector has magnets for producing a magnetic field so that electrical signals can be generated in response to the detection of metal parts in the crop stream. There are no magnetic materials for an area of defined size around the detector.