Typically use ultrasonic sensors prior to a sideways manoeuvre, such as a lane-change.
These permit it to monitor the hard-to-see areas to the side and just behind the car.
When turning or changing lanes, for instance, the system warns drivers that there is a vehicle in their blind spot by lighting up a symbol in the exterior rear-view mirrors.