Vlad, mine does the same.
Many years ago I pulled the sender out, checked it, checked the output readings (all fine) and re-installed.
Still didn't bloody well work and I hate tracing wiring so didn't.
It still doesn't read but at least the empty light comes on and the pump stops when it's all out.

