If you have a leak on the exhaust air will get in.If the leak is before the lambda sensor it will see this as a weak mixture and keep adding fuel to compensate until it cannot correct the fueling thats why the engine light comes on. At this point you take it to the garage who plug it into their scanner and they say ah the lambda sensor is no good and fit a new one charge you £100 and think they have fixed it. Any air leak on a inlet or exhaust brings a manor of codes.Hope this helps you.
Raz
November 2015