I have an application that requires the ability to detect a moving ferrous metal slug as it moves past a cert point inside a ferromagnetic/steel pipe. I have been attempting to solve this using a permanent magnet and coil as shown in the attachment but am having problems with the coil picking up the vibration of the slug against the inner wall of the pipe even when it is not in close proximity to the sensor (I'm assuming the PM is magnetizing the pipe). Also, there is not enough magnetic field inside the pipe to reliably detect the slug. I would like to know if an inductive sensor would be a better option for this application.