Use two global variables, currentTemp and currentVolume. When you enter a value on the keypad, you then update the global variable.
Use two global variables, currentTemp and currentVolume. When you enter a value on the keypad, you then update the global variable.