There’s a process you can do with a voltmeter if you Google. Can’t recall where it was, but might want to look into it.
I replaced my sender, same thing, replaced gauge and it worked. Not all gauges are universal. Got lucky and found one in CL for cheap.