A metal detector for detecting when a target that is a desirable metal object is located within a medium, comprising: a transmitter configured to transmit a magnetic field signal into the medium; a receiver configured to receive a response signal from the medium, the response signal including a secondary medium response signal from the medium and includes a secondary target response signal from the target when the target is located within the medium; a preamplifier configured to amplify the response signal to produce an amplified signal; compensation circuitry configured to perform transmit coil transfer function compensation on the amplified signal to produce a compensated signal; characterized in that the metal detector further comprises: a notch module configured to remove removes a resistive component of the secondary medium response signal from the compensated signal; a signal vector resistive component demodulator configured to produce a vector resistive component output signal from output of the notch module; a vector reactive component demodulator configured to produce a vector reactive component output signal from the output of the notch module; an analog-to-digital converter configured to digitize output from the signal vector resistive component demodulator and the vector reactive component demodulator to produce digital signals; and a digital signal processor configured to process the digital signals, wherein the notch module includes: a medium resistive component transfer function compensation circuit; a gate, the gate and the medium resistive component transfer function compensation circuit being configured to remove the resistive component of the secondary medium response signal from the compensated signal; and a regulator configured to adjust a medium resistive component transfer function timing constant. a transmitter configured to transmit a magnetic field signal into the medium; a receiver configured to receive a response signal from the medium, the response signal including a secondary medium response signal from the medium and includes a secondary target response signal from the target when the target is located within the medium; a preamplifier configured to amplify the response signal to produce an amplified signal; compensation circuitry configured to perform transmit coil transfer function compensation on the amplified signal to produce a compensated signal; characterized in that the metal detector further comprises: a notch module configured to remove removes a resistive component of the secondary medium response signal from the compensated signal; a signal vector resistive component demodulator configured to produce a vector resistive component output signal from output of the notch module; a vector reactive component demodulator configured to produce a vector reactive component output signal from the output of the notch module; an analog-to-digital converter configured to digitize output from the signal vector resistive component demodulator and the vector reactive component demodulator to produce digital signals; and a digital signal processor configured to process the digital signals, wherein the notch module includes: a medium resistive component transfer function compensation circuit; a gate, the gate and the medium resistive component transfer function compensation circuit being configured to remove the resistive component of the secondary medium response signal from the compensated signal; and a regulator configured to adjust a medium resistive component transfer function timing constant. a notch module configured to remove removes a resistive component of the secondary medium response signal from the compensated signal; a signal vector resistive component demodulator configured to produce a vector resistive component output signal from output of the notch module; a vector reactive component demodulator configured to produce a vector reactive component output signal from the output of the notch module; an analog-to-digital converter configured to digitize output from the signal vector resistive component demodulator and the vector reactive component demodulator to produce digital signals; and a digital signal processor configured to process the digital signals, wherein the notch module includes: a medium resistive component transfer function compensation circuit; a gate, the gate and the medium resistive component transfer function compensation circuit being configured to remove the resistive component of the secondary medium response signal from the compensated signal; and a regulator configured to adjust a medium resistive component transfer function timing constant. a medium resistive component transfer function compensation circuit; a gate, the gate and the medium resistive component transfer function compensation circuit being configured to remove the resistive component of the secondary medium response signal from the compensated signal; and a regulator configured to adjust a medium resistive component transfer function timing constant.