waiting for input from keypad?

Basically, I'm trying to use just an Arduino with a self-correcting program along with an LCD screen and a 4x4 keypad to try to auto-correct the temperature which will be found using a Thermistor, but I can't find a way to get the keypad to start a function. I'm trying to make it to where if you press 'A', it will then wait for another input (a number), then will put it onto a certain spot on the LCD. Is there a function to wait for user input from the keypad?

If not, how can I make it store 2 different variables before I press a "set" key 'A'? Such as, if I press 7 then 5 (to where I get 75 as my reading) then I can press A to set that variable onto the LCD.

Thanks

What keypad are you using and how is it connected to your Arduino?

Self-correcting things don't exist :stuck_out_tongue_closed_eyes:

Will you be doing something in the background while waiting for the user to press button A or are you solely waiting for the user input without having to do anything else, say read temperature and "correct" temperature as you wait for key press?

I'm working in a clock/countdown timer project that also uses a 4x4 keypad, and needs to start some function when a key is pressed (meanwhile it will keep on updating the clock sign).
I was thinking about using an interrupt to sense that a key is pressed, and afterwards read what key is pressed. Can this work?
I know i should have the whole key matrix connected to read the first key pressed, and afterwards start reading it selectively.

Reply #3 - yes, use the keypad.h library code.
Connect the keypad 8 pins and follow the tutorial, it works great.