ecuworx do software for turning off 2nd set of sensors for the e46. I think it works for the e39 too, mostly done when removing the cats.

Its like £20 for the licence and you can make other changes too.