Question: what is the difference between const int and int in arduino?
Answer: The difference between int and const int is that int is read/write while const int is read-only. If you want the compiler to catch invalid attempts to write to a variable, make it const. If the variable needs to be written to, as one that is legitimately used on the left of an equal sign, then it must not be const.