HELP, when a button is pressed to set a threshold of analog input.

You can't code anything until you decide what a button press represents. Just one button press? How many button presses? How do you know when you are through pressing buttons?

Paul