yes, both are sensors,
one for the Hall detector (g40) and the other is the rpm sensor (g28)

sorry can't give you further help , i do not have the audi parts number