I was a bit bored and was looking at your code… and noticed the error message was referring to a syntax issue… then I saw that you have an
if()
statement hanging in your void loop()
without associated condition/comparators and {} brackets.
Always read through those error messages (and Google them), sometimes they only glancingly point out the real issue.
https://www.arduino.cc/en/Reference/If
if (someVariable > 50)
{
// do something here
}