A method and a device are provided for fastening and aligning a sensor,
e.g., in motor vehicles, the sensor being connected to a support via a
holding element. By reworking the sensor seating surface, a precise
alignment of the sensor axis with the nominal direction may be achieved.