If you can afford the extra expense, I recommend a WEMA type of sender. In order to get the correct length, you measure from the flange to the bottom of the tank. Take that number and subtract one inch. That's the length you need.
Even if you go for a float type, measure since it is possible that the sender may not have been the correct dimension.The old sender whether tube type or float will come out through the flange opening.
It will be helpful to mark a spot on the tank and the flange so that later you can align the flange correctly during re-installation. The holes look evenly spaced but they aren't.
The screws should be tight but not over tightened. Good luck