Help with user input and storing inputs for use elsewhere

Hi all. I’m trying to control the humidity level in my house so I’ve thrown together a project using AM2302 an uno and LCD keypad shield. I will be controlling a couple relays depending upon user input. My problem is at menu item 3 where I’m trying to get some user input and store that data. When trying to input a value the number and index increases by 1. also when I save this data, only the last number printed to the LCD screen is saved. I want the number to increase but hold to the index until the user pushes the right or left button. I also want to limit to only 4 numbers to match the structure of the DHT library. What am I missing?

Temp_Humid.ino (11 KB)