i need to be able to change some int value with lcd keypad shield

hi

I need to change the value of these ints by LCD keypad and use the new values to activate and deactivate some relays

const int t_lowerlimit = 26 // set threshold  temperature to activate heater
int t_upperlimit = 27 // set threshold temperature to activate cooler
int h_lowerlimit = 50 // set threshold humidity to activate water mistifier
int h_upperlimit = 60 // set threshold humitiy to activate fan
int s_lowerlimit = 200 // set threshold water value to activate the buzzer
int s_upperlimit = 400 // set threshold water value to activate  the pump
int OnHour = 6; //SET TIME TO ON Lamp (24 HOUR FORMAT)
int OnMin = 0;
int OffHour = 0; //SET TIME TO OFF Lamp
int OffMin = 0;

I just need to be able to set these value and see them in LCD and also if it's possible see serial print in LCD

thanks

What type of LCD? What type of keypad? Have you attempted any code yet?

You are going to have an impossible time changing a variable defined as 'const'

See How to input a multiple digits number using the keypad

ToddL1962:
What type of LCD? What type of keypad? Have you attempted any code yet?

a DFR0009 LCD KeyPad Shield knock off.
I tried some sample code to see if it works or not, didn't find any code for changing int value to try to work out how I can change it to my need

Try writing something simple that displays an integer on the LCD. Read the buttons; if you detect a left press, decrement it and display the new value.

Then implement the right button.

Then add text for the name of the parameter you're changing.

Then use up and down to scroll through the parameters.

blh64:
You are going to have an impossible time changing a variable defined as 'const'

I don't think changing const int to int would affect my code or maybe I can use byte for it if its possible

moeinipharmd:
I don't think changing const int to int would affect my code or maybe I can use byte for it if its possible

Const means you can't change it in the program. Byte won't work for you in your current example - 400 is too big.

wildbill:
Const means you can't change it in the program. Byte won't work for you in your current example - 400 is too big.

yes i got it , what about int ( without const ) ?
what about using EEPROM liberary ?

int is fine. EEPROM is good too. I strongly suggest though that you leave EEPROM until you can manipulate your settings with the LCD buttons. Don't try to do it all at once.