In reality the normally crap fuel gauges do not simply show “zero” and “non zero” but they shake around so much one can’t really read them (IME).
The problem is probably caused by the ball float mechanism which follows the shoshing of the fuel, without adequate damping, Or maybe the damping (prob90 done with capacitors) no longer works because the electrolytic capacitors have dried out over the decades…