A sensor comprises a housing which defines a measuring side and a connection side, a coil (6) which is arranged in the housing (1) on the measuring side, and a cover (14) for closing the housing on the measuring side. The housing (1) consists of ferromagnetic material, in particular ferromagnetic steel. The coil (6) is positioned and fixed in the housing close to the cover (14) or directly on the cover (14).