you can use a bulkhead connector like that one but I think a better spot to put it is in the dimple above the sending unit its almost like the engineers put it there for that reason.
but if you think putting it in the sending unit is a better spot have at it .