love o meter starting project

I need help with the love o meter project. I wrote the program according to the guide but when I connect it it doesnt work and I dont know what is wrong can somebody tell me what to correct.
I am using an arduino uno and programing with a windows pc
when I connect the arduino and open the serial monitor data starts to appear as it is supposed to, but the leds dont turn on
thanks

ps: my leds are connected to pins 2 to 6 and the sensor to A0

const int sensorPin=A0;
const float baselineTemp= 20.0;
void setup (){
  Serial. begin (9600);
  
  for (int x=2; x<7;x++){
    pinMode (x,OUTPUT);
    digitalWrite (x,LOW);
  }
}
void loop (){
  
  int sensorVal=analogRead(sensorPin);
  Serial.print(sensorVal);
  Serial.print("ADC,");
  float voltage=(sensorVal/1024.0)*5.0;
  Serial.print(voltage);
  Serial.print ("Volts,");
  float temperature=(voltage-.5)*100;
  Serial.print (temperature);
  Serial.println ("degrees,");
  if (temperature<baselineTemp){
    digitalWrite (2,LOW);
    digitalWrite (3,LOW);
    digitalWrite (4,LOW);
    digitalWrite (5,LOW);
    digitalWrite (6,LOW);
  }
  else if(temperature>=baselineTemp+2 && temperature>baselineTemp){
    digitalWrite (2,HIGH);
    digitalWrite (3,LOW);
    digitalWrite (4,LOW);
    digitalWrite (5,LOW);
    digitalWrite (6,LOW);
  }
  else if (temperature>=baselineTemp+4 && temperature> baselineTemp){
    digitalWrite (2,HIGH);
    digitalWrite (3,HIGH);
    digitalWrite (4,LOW);
    digitalWrite (5,LOW);
    digitalWrite (6,LOW);
  }
  else if (temperature>=baselineTemp+6 && temperature>baselineTemp){
    digitalWrite (2,HIGH);
    digitalWrite (3,HIGH);
    digitalWrite (4,HIGH);
    digitalWrite (5,LOW);
    digitalWrite (6,LOW);
  }
  else if (temperature>=baselineTemp+8 && temperature>baselineTemp){
    digitalWrite (2,HIGH);
    digitalWrite (3,HIGH);
    digitalWrite (4,HIGH);
    digitalWrite (5,HIGH);
    digitalWrite (6,LOW);
  }
  else if (temperature>=baselineTemp+10 && temperature>baselineTemp){
    digitalWrite (2,HIGH);
    digitalWrite (3,HIGH);
    digitalWrite (4,HIGH);
    digitalWrite (5,HIGH);
    digitalWrite (6,HIGH);
  }
}

Link

@ale_ale15: What happens in your code if temperature equals baselineTemp? Nothing. Once you correct that, you'll see that your else if statements are more complex than they need to be.

It would be simpler to subtract baselineTemp from temperature, and deal with the difference.

@PaulS
Ale_ale15 was already given working solutions by me and one other person. My guess is he tried them and it still does not work, which means it's not the code, but more likely the wiring itself. Possibly the LEDs are not grounded or are wired backwards.