A magnetic field sensor, in particular an rpm sensor and/or rotational
direction sensor and/or position sensor for the drive train of a motor
vehicle, has a sensor array, with a sensor element that responds to a
magnetic field, and optionally with a permanent magnet, the latter being
sheathed with plastic jointly with the sensor array and parts of terminal
conductor tracks, and the conductor tracks are embodied in one piece with
a fixing element for the permanent magnet and the sensor array as a
stamped grid, wherein stamped grid is shaped as a three-dimensional
structure which carries the sensor array and optionally embraces the
permanent magnet in the manner of a mount, and the mount and the terminal
conductor tracks are first stamped out from a metal sheet as a gridlike
developed form, and then deformed to form the mount.