this is the revised code, the problem with this code is, the counting up doesnt stop as well. when input9 is given low, the display freezed on the last count but when given high, the display refreshed to the latest numbers (the arduino still doing the counting up, its just didnt update on display)