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

eg01st

250RPM
Original poster
Premium
Jul 28, 2018
456
1,522
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