Help on If Statement For TFT Display

If I go back to 1st gear the hall sensor will register the move and display 6th gear.

Which hall effect sensor? The one for up-shifting or the one for down-shifting?

You need to post some kind of diagram to explain the hardware setup.