What is this wire?

I can't seem to figure out what this wire that attaches to the front of my cylinder head is for. Mine snapped in half.
View attachment 1715906047
It's the wire that connects to the temperature sending unit.