Depends if the float sender unit is easily accessible and what vehicle you have. If the sender unit is difficult to access it probably cost more in labour than the price of the replacement part (as usual)
breadstick
The float sender unit is like a cistern ballcock valve with a solenoid attached ,It dangles from the top of the tank and rises and falls with the fuel level.
Just to clarify what we are describing. :-)
ukbod2015
Alas the Irish spanner seems more and more redundant as technology progresses. Once useful for stubborn starter motors and dicky fuel pumps.
Easy get out of gaol fixes long gone.
Many, many years ago I used my car for a couple of years without a functioning fuel gauge...and never ran out of fuel. I simply filled up, zeroed the trip meter and drove 360 miles (carefully calculated from past fuel consumption)...then filled up, zeroed the trip meter etc.