What’s this sensor near the coil pack?

Looks to be near an oil leak. What is this sensor for?

Looks to be near an oil leak. What is this sensor for?