Creating an on/off/auto function for irrigation project

I am having trouble creating with this error. If anyone can see. Please help. Creating a keypad loop to control the different modes of operation for my system.

a function-definition is not allowed here before ‘{’ token on the line with the bracket starting at loop function

Forum_question_1.txt (2.61 KB)

Quikksilver: I am having trouble creating with this error. If anyone can see. Please help. Creating a keypad loop to control the different modes of operation for my system.

a function-definition is not allowed here before '{' token on the line with the bracket starting at loop function

Posting a question once in the Arduino forum is enough.

(deleted)