Where is the engine coolant temperature sensor in a 1997 Audi A6 Quattro and how do I replace it?

If It is the temp. sensor and not the thermosat I believe it is the bottom of the coolant tank. I thimk you have to buy a new tank.