Aftermarket sending unit not the same

I didnt had a problem with the old one but i changed my tank, it was very rusty and the original sending unit too, so i changed the unit also i didnt want to have a new tank with a rusty sending unit thats all, and now i need a 1/2" sending unit for my new engine

thx Peter