Expected primary expression expected before ")" token

I’m trying to build a temperature sensor that records its information to a micro-SD card. This error message keeps popping up, no matter what I change. I’ve looked through other forums, but can’t figure it out. Any help would be appreciated!

rocket.ino (2.74 KB)

Can I suggest you review how to write a for loop?

(deleted)

(deleted)

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom... :slight_smile:

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.