Temperature by leds: errors, can you help me?

Hi,

First of all I'd like to mention that I'm new to programming, and that I like the arduino community allot. The internet is full of information to get you started with the simple basics. The problem is that I have searched the forums for almost 48 hours, without any luck of finding an answer to fix my code.

Can you help me solving this issue, so I can learn something from you, and to become helpfull for others in the future. Most of the errors are the same, and I can't figure out what to do. Everything worked fine untill the if else, and else statements where added.

I'm trying to create a temperature measurement tool, that displays the temperature by a few leds.

My errors:

variabele_leds_temp.ino: In function 'void loop()':
variabele_leds_temp:25: error: expected `(' before 'else'
variabele_leds_temp.ino: At global scope:
variabele_leds_temp:34: error: expected unqualified-id before 'if'
variabele_leds_temp:35: error: expected unqualified-id before '{' token
variabele_leds_temp:43: error: expected unqualified-id before 'if'
variabele_leds_temp:44: error: expected unqualified-id before '{' token
variabele_leds_temp:52: error: expected unqualified-id before 'if'
variabele_leds_temp:53: error: expected unqualified-id before '{' token
variabele_leds_temp:60: error: expected unqualified-id before 'else'
variabele_leds_temp:68: error: expected declaration before '}' token

The code:

float temp;
int tempPin = 0;

void setup(){
Serial.begin(9600);
}
void loop()
{
temp = analogRead(tempPin);
temp = temp *0.48828125;
Serial.print("TEMPRATURE = ");
Serial.print(temp);
Serial.print("*C");
Serial.println();

if (temp >=1&& temp<=10);
{
digitalWrite(12, HIGH);
digitalWrite(11, LOW);
digitalWrite(10, LOW);
digitalWrite(9, LOW);
digitalWrite(8, LOW);
}

if else (temp >10&&temp<=20);

digitalWrite(12, HIGH);
digitalWrite(11, HIGH);
digitalWrite(10, LOW);
digitalWrite(9, LOW);
digitalWrite(8, LOW);
}

if else (temp >20&&temp<=25);
{
digitalWrite(12, HIGH);
digitalWrite(11, HIGH);
digitalWrite(10, HIGH);
digitalWrite(9, LOW);
digitalWrite(8, LOW);
}

if else (temp >25&&temp<=30);
{
digitalWrite(12, HIGH);
digitalWrite(11, HIGH);
digitalWrite(10, HIGH);
digitalWrite(9, HIGH);
digitalWrite(8, LOW);
}

if else (temp >30&&temp<=35);
{
digitalWrite(12, HIGH);
digitalWrite(11, HIGH);
digitalWrite(10, HIGH);
digitalWrite(9, HIGH;
digitalWrite(8, HIGH);
}
else
{
digitalWrite(12, LOW);
digitalWrite(11, LOW);
digitalWrite(10, LOW);
digitalWrite(9, LOW);
digitalWrite(8, LOW);
}
}

Thanks in advance,

Bart

if else (temp >20&&temp<=25);

No ; on the end of the line, same for all the "if" lines.

Oh, and the is no "if else", just "else" or another "if" or "else if"

Line 26 is missing a {

Line 57 is missing a )


Rob

(deleted)

Thank's for your help. I knew that it had to be something simple that I looked over and over, it was a brain cracking situation for me as a beginner in programming. I wrote this code in 3 hours of learning on how to use the arduino, with 48 hours of troubleshooting.

I've completely rewrote the code to learn from my mistakes.

Have a nice day,

Greetings from Holland