The microswitches for detecting the trunk lid position are attached to the rear of the lock cylinder ass'y. Once removed (which is relatively simple) you can see the microswitches clearly on the rear of the unit. You should be able to order replacements from Mauser, Digi-Key, or even just eBay. We just discussed this recently, the discussion is still on the front page.
The QuattroWorld website is not affiliated with or endorsed by Audi AG or
Audi of America, Inc. AudiTM, QuattroTM, Avant,
Tiptronic, FrontTrak, A2, A3, A4, A6, A8, S3, S4, S6, S8, TT, TT-S, R8,
RS4, RS 6, Q7, Q5 and allroad quattro are trademarks of Audi AG.