Confused with a basic error

Hey guys, i'm very new to this stuff and learning it at uni. I'd appreciated anyones help with these error messages. Any help would be great, and sorry for the novice level....

Error messages are
sketch_apr09a.ino:6:1: error: stray '' in program
sketch_apr09a.ino:10:1: error: stray '' in program
sketch_apr09a.ino:28:1: error: stray '' in program
sketch_apr09a.ino:3:1: error: 'u2028' does not name a type
sketch_apr09a.ino:6:2: error: 'u2028' does not name a type

My sketch is void setup() {
pinMode(10, OUTPUT);
pinMode(7, INPUT);
Serial.begin(9600);
}

void loop() {
int sensorValue1 = analogRead(A0);
int sensorValue2 = digitalRead(7);

if(sensorValue2 == HIGH){
digitalWrite(10, HIGH);
delay(145000);}
for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -= 5)
{analogWrite(10, fadeValue);
}

if(sensorValue1 > 500){
digitalWrite(10, HIGH);
delay(145000);
for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -= 5)
{analogWrite(10, fadeValue);
}
}
else {
digitalWrite(10, LOW);
}

Serial.println(sensorValue1);
delay(1);
}

You seem to have some control codes hidden in the code you supplied. I removed them and it compiles okay now. (Note the use of code tags to make it more readable)

void setup() {
  pinMode(10, OUTPUT); 
  pinMode(7, INPUT);
  Serial.begin(9600);
}

void loop() {
  int sensorValue1 = analogRead(A0);
  int sensorValue2 = digitalRead(7);

  if(sensorValue2 == HIGH){
    digitalWrite(10, HIGH);
    delay(145000);
  } 
  for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -= 5)
  {
    analogWrite(10, fadeValue); 
  }
  
  if(sensorValue1 > 500){
    digitalWrite(10, HIGH);
    delay(145000);
    for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -= 5)
    {
      analogWrite(10, fadeValue); 
    }
  }
  else {
    digitalWrite(10, LOW);
  }

  Serial.println(sensorValue1);
  delay(1);       
}

sketch_apr09a.ino:6:1: error: stray '' in program

You copied the program from a Web page and it has included some Unicode characters that the compiler cannot cope with. Has the source of the code got an option to download a raw version or display it so that it can be copied ? The likely (but not the only) cause of the problem are any minus signs in the program. Delete them and put them back in the IDE.

sketch_apr09a.ino:3:1: error: 'u2028' does not name a type

Where is the rest of your program ? This type of error often means that a library has not been #included or if it has that the compiler cannot find it.

delay(145000);

Do you really want to wait more than 2 minutes before your arduino do anything ??

Yo have this code twice so for 5 minutes arduino will not do anything at all. No measurements, no serial prints... nothing ....

Ahh Riva thanks so much man!

Yeah its meant to not doing anything for 2min 25seconds!

Thankyou!

\u2028 is some kind of special line separator.