It's a thermistor - air temperature sensor.
We got one our '06 TD4, not found it in the Rave or Haynes book but it must send info back to the ECU about the inlet air temperature.
It is in the air intake to the engine between the intercooler and the inlet manifold.
The air going past it has been...