Multiple ultrasonic sensors (SR04) on one Arduino

I am essentially making a blind spot detection system that uses two SR04 ultrasonic sensors and lights up an LED when an object is less than 10 cm away. It works perfectly on the left side but the right sensor gives me values of zero in the serial port (thus keeping the right side LED illuminated constantly while the program is running). I turned off all commands and variables to the left side and it worked perfectly on the right side so the issue is not the sensor, rather it's the code. Can anyone please help me fix my code so both sensors can work simultaneously? The code I am using is printed below.

// defines pins numbers
  const int trigPin1 = 9;
  const int echoPin1 = 10;
  const int trigPin2 = 7;
  const int echoPin2 = 8;
  int ledPin1 = 12;
  int ledPin2 = 13;
  
// defines variables
  long duration1;  
  long duration2;
  int distance1;
  int distance2;
  
void setup() {
    pinMode(trigPin1, OUTPUT); // Sets the trigPin as an Output
    pinMode(echoPin1, INPUT); // Sets the echoPin as an Input
    pinMode(ledPin1, OUTPUT); //Sets the ledPin as an Output
    pinMode(trigPin2, OUTPUT); // Sets the trigPin as an Output
    pinMode(echoPin2, INPUT); // Sets the echoPin as an Input
    pinMode(ledPin2, OUTPUT); //Sets the ledPin as an Output
    Serial.begin(9600); // Starts the serial communication
}

void loop() 
{
// Clears the trigPin
    digitalWrite(trigPin1, LOW);
    digitalWrite(trigPin2, LOW);
    delayMicroseconds(0);
    
// Sets the trigPin on HIGH state for 10 micro seconds
    digitalWrite(trigPin1, HIGH);
    digitalWrite(trigPin2, HIGH);
    delayMicroseconds(2);
    digitalWrite(trigPin1, LOW);
    digitalWrite(trigPin2, LOW);
    
// Reads the echoPin, returns the sound wave travel time in microseconds
    duration1 = pulseIn(echoPin1, HIGH);
    duration2 = pulseIn(echoPin2, HIGH);
    
// Calculating the distance
    distance1= duration1*0.034/2;
    distance2= duration2*0.034/2;
    
// Prints the distance on the Serial Monitor
    Serial.print("Left Sensor: ");
    Serial.println(distance1);
    Serial.println();
    Serial.print("Right Sensor: ");
    Serial.println(distance2);
    
// Sends signal to LED
   if (distance1 < 10)
   {
    digitalWrite(ledPin2,LOW);
    digitalWrite(ledPin1,HIGH);
   }
   else
   {
    digitalWrite(ledPin1,LOW);
    digitalWrite(ledPin1,LOW);
   }
   
   if (distance2 < 10)
   {
    digitalWrite(ledPin2,HIGH);
    digitalWrite(ledPin1,LOW);
   }
   else
   {
    digitalWrite(ledPin2, LOW);
    digitalWrite(ledPin1,LOW);
   }
  
}

Please post your code, in code tags

Triggering both sensors at the same time is not normally a good idea - you can't tell which echo comes from which sensor.

This may or may not matter to you.

Put the code to send a pulse and read the echo in a function that takes two arguments. Call that function twice. Do NOT try to interleave the sending of pulses and reading of echos.