Current sensing and LED-bar - logic failure

No... From what I understand, this just sets the range of LEDs that need to be switched on.

I got this from an example sketch the seller provided and it's working fine.

Except that the rest of the sketch seems flawed - as I explained...

Do I need to a different approach? Maybe like defining a variable based on the Amp-Value and link the LED-ranges to this variable?