Hi
It sounds like the code was written for the 16x2 LCD display with the buttons arranged as a potential divider.
Each button caused a different voltage output, which the analogRead would convert to a variable representing which button was pushed.
The circuit is like this.

If you want discrete buttons, you could wire a button to each of a digital input of your Arduino.
Tom... ![]()
