LKA is camera-based. Almost universally, the camera sits behind the windscreen near the rear-view mirror, looking down the road through the upper portion of the glass.
The camera reads two things: the position of the white or yellow lines marking the edges of your lane, and the position and trajectory of your car relative to those lines. When the camera detects that you're about to cross a line without an indicator, the steering system applies a brief corrective input through the electric power steering motor.
The correction is intentionally light. LKA doesn't fight the driver. Hold the wheel firmly and the input is overridden. Indicate before changing lanes and the system stays out of it. Drift unintentionally without an indicator and the steering nudges you back.
This is also why LKA is the more controversial ADAS feature among UK drivers, particularly on narrow rural roads where intentional lane positioning (passing parked cars, hugging the inside of a bend) can trigger false corrections.
Light on the road matters. LKA struggles when lane markings are faded, when night driving exposes only one edge of the lane, when heavy rain reduces camera contrast, and on roads with no markings at all (rural single-carriageway, residential streets). In these conditions most systems disable themselves automatically and flash a 'Lane Assist Unavailable' message.