trying to get 2 x ds18b20 sensors to control a relay each

Hi there I’m trying to develop a system of 2 ds18b20 sensors to control a relay each, this would be done by using their temperature reading but I am struggling with getting them to control the relays, as when I set the specific temperature I don’t get any change with the relays, I get the temperature readings fine but I’ve been going round in circles trying different methods to get the relays to function but can’t seem to get it working can anyone help try to resolve this problem with me? I have attached my code below if anyone can help or come up with another way to do it that would be fantastic!!

#include <OneWire.h>
#include <DallasTemperature.h>
#include <Wire.h>
// Data wire is plugged into digital pin 2 on the Arduino
#define ONE_WIRE_BUS 2

// Setup a oneWire instance to communicate with any OneWire device
OneWire oneWire(ONE_WIRE_BUS); 

// Pass oneWire reference to DallasTemperature library
DallasTemperature sensors(&oneWire);

int deviceCount = 0;
int relPin1 =6 ;
int relPin2 =5 ;
int relPin3 =4 ;
int relPin1In = 3;
int relPin2In = 4;
int relPin3In = 5;
int Sensor1 =2;
float tempC;

int relPin1Val;
int relPin2Val;
int relPin3Val;
void setup()
{
 
  pinMode(relPin1, OUTPUT);
  pinMode(relPin2, OUTPUT);// declaring pins to be an output:
  pinMode(relPin3, OUTPUT);
 
  sensors.begin();  // Start up the library
  Serial.begin(9600);
 
  // locate devices on the bus
  Serial.print("Locating devices...");
  Serial.print("Found ");
  deviceCount = sensors.getDeviceCount();
  Serial.print(deviceCount, DEC);
  Serial.println(" devices.");
  Serial.println("");
  int reading = digitalRead(Sensor1);

}

void loop()
{
  // Send command to all the sensors for temperature conversion
  sensors.requestTemperatures();
  float temperature1 = sensors.getTempCByIndex(0);
  float temperature2 = sensors.getTempCByIndex(1);
  // Display temperature from each sensor
  for (int i = 0;  i < deviceCount;  i++)
  {
    Serial.print("Sensor");
    Serial.print(i+1);
    Serial.print(" : ");
    tempC = sensors.getTempCByIndex(i);
    Serial.println(tempC);
    Serial.print((char)176);//shows degrees character
    delay (2000); // change reading times
   
    if (temperature1 <= 25) {
    relPin1Val=LOW;
    }
     else if (temperature1 > 25) {
      relPin1Val=HIGH;
    }
   
    if (temperature2 <= 25) {
    relPin1Val=LOW;
    }
     else if (temperature2 > 25) {
      relPin1Val=HIGH;
    }
  {    digitalWrite(relPin1, relPin1Val);
  digitalWrite(relPin2, relPin2Val);
  digitalWrite(relPin3, relPin3Val);
  }  } }

following code, while it tests temperature1 and temperature2 only sets relPin1val

   if (temperature1 <= 25) {
    relPin1Val=LOW;
    }
     else if (temperature1 > 25) {
      relPin1Val=HIGH;
    }
   
    if (temperature2 <= 25) {
    relPin1Val=LOW;
    }
     else if (temperature2 > 25) {
      relPin1Val=HIGH;
    }

that solved my problem one small mistake thank you