The invention relates to a metal sensor comprising a primary coil, a compensation coil, a first additional coil and a magnetic field sensor. The first additional coil can be excited without the primary coil and the compensation coil being supplied being excited.