What is that thin pipe on race car's bonnets or roofs?

I am curious, but could not find answer. See the picture to get what I mean. It's facing the front so it must be taking in air. Does it measure air temperature?
pipe.jpg
 
Back
Top