NEED HELP to Program a Batching System

I can't find the solution, that's why i came here, i have tried to explain everything what i know, what i did, and what i want to do,

so here what i want to do is, I want to take input from the keypad and store it as a variable and use the variable to compare with the current weight of the weight sensor,

and if the current weight is greater that the variable value turn the relay on,

I accept the i am a beginner and i know nothing about this but here i am trying to learn some thing,

and i expect that you, the Arduino Programming expert, can help me to solve this problem.

and tell me where i am going wrong with the code.

Sorry if you feel my behavior is rude, please forgive me, i am very frustrated here in trying codes.