tempurature sensor help

i got the arduino starter kit and i am doing project 3 but when i do it none of the LEDs light up. i have looked at the serial moniter and it says
Sensor Value: 84, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 0, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 5, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 84, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 0, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 6, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 84, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 0, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 7, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 84, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 0, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 8, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 84, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 0, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 9, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 84, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 0, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 10, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 79, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 0, Volts: -50.00’ degrees C: -5050.00
Sensor Value: 36, Volts: -50.00’ degrees C: -5050.00
and my code is
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 ACD reading to voltage
float voltage = (voltage - .5) * 100;
Serial.print(”, Volts: “);
Serial.print(voltage);
Serial.print(”’ degrees C: ");
// convert the voltage totempureture 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+40){
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
}else if(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);
}
does anyone know what is wrong :grin:

You read into sensorVal variable the do all the conversion and print with voltage, never using sensorVal.