Expected primary expression expected before ")" token

sketch_may03a:91: error: expected primary-expression before ')' token
   for (int temperaturePin = 0;) {
                               ^
sketch_may03a:91: error: expected ';' before ')' token

That's telling you that the 'if' in line 91 is missing a semicolon before the close-paren.

sketch_may03a:97: error: a function-definition is not allowed here before '{' token
   {
   ^

That's telling you that in line 97 you are trying to define a function inside a function. That usually means you forgot a '}' in the previous function.

sketch_may03a:132: error: expected '}' at end of input
   }
   ^

That's telling you that there is a '}' missing in the last function in the file.