Radar sensor for motor vehicles, having a transmitting and receiving device for microwaves, in which beam-shaping devices which are independent of one another are provided for the azimuth and the elevation, and the beam-shaping device for the elevation has a cylindrical lens. In an example, the components may be embedded within layers of the PCB. A step is also performed of monitoring the temperature of the substrate, e.