A driver assist system for a vehicle includes a housing and a lens having an axial end extending into the housing. A first printed circuit board (PCB) is connected to the housing. The first PCB has a rigid portion and a flexible portion. The rigid portion and the flexible portion extend along a common axis. An image sensor is mounted on the rigid portion of the PCB adjacent the axial end of the lens.