A few Arduino Uno error messages i dont understand

Okay so i just started this Arduino Uno project a week ago and its pretty fun, im on Task 3, the Love-O-Meter and i finished writing the code, although when i verify and upload, i get 3 error messages:

Arduino: 1.7.10 (Windows 8.1), Board: "Arduino Uno"

L0M_Arduino_Task_3.ino:2:1: error: expected unqualified-id before numeric constant

L0M_Arduino_Task_3.ino:1:24: error: 'AO' was not declared in this scope

L0M_Arduino_Task_3.ino:54:1: error: expected ',' or ';' at end of input

Error compiling.

And im not sure how to get past it--
Heres my code ive written--

const int sensorPin = AO
const float baselineTemp = 20.0

void setup() {
Serial.begin(9600); // open a serial port

for(int pinNumber = 2; pinNumber<5; pinNumber++) {
pinMode(pinNumber, OUTPUT);
digitalWrite(pinNumber, LOW);
}
}

void loop() {
int sensorVal = analogRead(sensorPin);
Serial.print("Sensor Value: ");
Serial.print(sensorVal);
//convert the ADC reading to voltage
float voltage = (sensorVal;/1024.0) * 5.0;
Serial.print(", Volts: ");
Serial.print(voltage);
Serial.print(", degrees C: ");
//convert the voltage to tempeartire in degrees
float temperature = (voltaeg - .5) * 100;
Serial.println(temperature);

if(temperature < baselineTemp){
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+2) &&
temperature < baselineTemp+4){
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+4) &&
temperature < baselineTemp+6){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+6){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);

}
delay(1);
}

}

Any and all help is appreciated

const int sensorPin =  AO
const float baselineTemp = 20.0

Both missing semicolon

float temperature = (voltaeg - .5) * 100;

Spelling

Also it's A "zero", not A"Oh"

float voltage = (sensorVal;/1024.0) * 5.0;

Comma after sensorVal, not semicolon.

now i get this---

Arduino: 1.7.10 (Windows 8.1), Board: "Arduino Uno"

L0M_Arduino_Task_3.ino: In function 'void loop()':

L0M_Arduino_Task_3.ino:19:30: error: expected primary-expression before '/' token

L0M_Arduino_Task_3.ino:33:32: error: invalid operands of types 'void*' and 'float' to binary 'operator<'

L0M_Arduino_Task_3.ino:33:33: error: expected ';' before ')' token

L0M_Arduino_Task_3.ino:39:32: error: invalid operands of types 'void*' and 'float' to binary 'operator<'

L0M_Arduino_Task_3.ino:39:33: error: expected ';' before ')' token

L0M_Arduino_Task_3.ino:33:5: error: label 'temperature' used but not defined

L0M_Arduino_Task_3.ino: At global scope:

L0M_Arduino_Task_3.ino:54:1: error: expected declaration before '}' token

Error compiling.

Can't see your code.
Use code tags this time, please.

what are code tags?

const int sensorPin = A0;
const float baselineTemp = 20.0;

void setup() {
Serial.begin(9600); // open a serial port

for(int pinNumber = 2; pinNumber<5; pinNumber++) {
pinMode(pinNumber, OUTPUT);
digitalWrite(pinNumber, LOW);
}
}

void loop() {
int sensorVal = analogRead(sensorPin);
Serial.print("Sensor Value: ");
Serial.print(sensorVal);
// convert the ADC reading to voltage
float voltage = (sensorVal,/1024.0) * 5.0;
Serial.print(", Volts: ");
Serial.print(voltage);
Serial.print(", degrees C: ");
// convert the voltage to tempeartire in degrees
float temperature = (voltage - .5) * 100;
Serial.println(temperature);

if(temperature < baselineTemp){
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+2) &&
temperature < baselineTemp+4){
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+4) &&
temperature < baselineTemp+6){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+6){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);

}
delay(1);
}

}

Oops sorry, not comma after sensorVal.

Code tags are explained in the readme at the top of the forum.

I don't have the source book you have - is there something wrong with it?

what is a source book

else if(temperature >= baselineTemp+2) &&
   temperature < baselineTemp+4){

should be

 else if (temperature >= baselineTemp + 2 && temperature < baselineTemp + 4) {

The thing that you got your code from.
I figured it was a physical book, because if it was electronic, you would just cut and paste, and you wouldn't have all these transcription errors.

um yes i am using the book that came with the kit, "Arduino Uno Projects Book"

Oh, this is from the Arduino Starter Kit!

ArdUnoLerner:
um yes i am using the book that came with the kit, "Arduino Uno Projects Book"

Ah yes, the Starter Kit. I have that as well. Double check the code. I know for a fact what you have isn't what the book says.

okay guys here are the error messages i have now--

Arduino: 1.7.10 (Windows 8.1), Board: "Arduino Uno"

L0M_Arduino_Task_3.ino: In function 'void loop()':

L0M_Arduino_Task_3.ino:19:30: error: expected primary-expression before '/' token

L0M_Arduino_Task_3.ino: At global scope:

L0M_Arduino_Task_3.ino:54:1: error: expected declaration before '}' token

Error compiling.

code---

const int sensorPin = A0;
const float baselineTemp = 20.0;

void setup() {
Serial.begin(9600); // open a serial port

for(int pinNumber = 2; pinNumber<5; pinNumber++) {
pinMode(pinNumber, OUTPUT);
digitalWrite(pinNumber, LOW);
}
}

void loop() {
int sensorVal = analogRead(sensorPin);
Serial.print("Sensor Value: ");
Serial.print(sensorVal);
// convert the ADC reading to voltage
float voltage = (sensorVal,/1024.0) * 5.0;
Serial.print(", Volts: ");
Serial.print(voltage);
Serial.print(", degrees C: ");
// convert the voltage to tempeartire in degrees
float temperature = (voltage - .5) * 100;
Serial.println(temperature);

if(temperature < baselineTemp){
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+2 &&
temperature < baselineTemp+4){
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+4 &&
temperature < baselineTemp+6){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+6){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);

}
delay(1);
}

}

float voltage = (sensorVal,/1024.0) * 5.0;

Lose the comma. See reply #7
Use code tags. Use the five minutes before you can post again to read about them.

now--

Arduino: 1.7.10 (Windows 8.1), Board: "Arduino Uno"

L0M_Arduino_Task_3.ino: In function 'void loop()':

L0M_Arduino_Task_3.ino:19:30: error: expected primary-expression before '/' token

L0M_Arduino_Task_3.ino: At global scope:

L0M_Arduino_Task_3.ino:54:1: error: expected declaration before '}' token

Error compiling.

Can't see your code.
Again.

sorry my bad

const int sensorPin = A0;
const float baselineTemp = 20.0;

void setup() {
Serial.begin(9600); // open a serial port

for(int pinNumber = 2; pinNumber<5; pinNumber++) {
pinMode(pinNumber, OUTPUT);
digitalWrite(pinNumber, LOW);
}
}

void loop() {
int sensorVal = analogRead(sensorPin);
Serial.print("Sensor Value: ");
Serial.print(sensorVal);
// convert the ADC reading to voltage
float voltage = (sensorVal,/1024.0) * 5.0
Serial.print(", Volts: ");
Serial.print(voltage);
Serial.print(", degrees C: ");
// convert the voltage to tempeartire in degrees
float temperature = (voltage - .5) * 100;
Serial.println(temperature);

if(temperature < baselineTemp){
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+2 &&
temperature < baselineTemp+4){
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+4 &&
temperature < baselineTemp+6){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);

}else if(temperature >= baselineTemp+6){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);

}
delay(1);
}

}

What happened to the code tags?float voltage = (sensorVal,/1024.0) * 5.0
Lose the comma (again) and stick a semicolon on the end.

Is the print in the book unclear or really small?