What sensor is this
You can do a temp repair.
Pull the black L shaped connector off the Temp sendet
You will notice the top of the sender has threads.
Get 2 nuts that fit the threads and a terminal with a hole in it.
Strip back the wire a bit and crimp the terminal on the end.
Put a nut on the senders threads then the terminal then the other nut.
Snug the nuts against each other and test.
Like this but use 2 nuts
WARNING...
If the wire touches any ground and the key is in the ON or ACC position it CAN burn out the temp gauge.