A couple of ways. Either drill out the old inside of the sender and install new parts or if you have a lathe, make a new brass fitting and install the parts. I did it both ways.

The inside will be a thermister of the appropriate resistance.

Lowell