Damn it where's 7th gear when you need it?!
The thermostat ones are common enough & not a major drama, think there's 2 temp sensors on the 1.8T so one can go down & all will function prefectly still. What you are showing thought is the MAF playing up which helps control things on the intake side as well as the lambda sensor which helps control things on the exhaust side. These will be the key to the rough running, get them changed and you should be smooth running again.
A4 3.0 Quattro Sport - Gone & missed everyday!
Current road going missile.....
........Smart Roadster - arguably the most fun you can have in a car without using lube!!