Multiple force sensor inputs

I’m trying to take inputs from two force sensors and then have the output be a piezo buzzer. I’ve set up and got working one force sensor circuit to one piezo buzzer output. Would the following code work for taking two separate inputs for two separate outputs? I’ve tried and it seems that only one of the circuits is working. Is there anything wrong with the code, or would it be more of a circuit problem?

Thanks!

int flexiForcePin = A0; //analog pin 0
int flexiForcePin2 = A1; //analog pin 1

void setup(){

pinMode(13, OUTPUT);
pinMode(12, OUTPUT);

}

void loop(){
int flexiForceReading = analogRead(flexiForcePin);
if(flexiForceReading < 500) digitalWrite(13, HIGH);
else digitalWrite(13, LOW);

int flexiForceReading2 = analogRead(flexiForcePin2);
if(flexiForceReading2 < 500) digitalWrite(12, HIGH);
else digitalWrite(12, LOW);

}

Should work. You can save a couple of lines by using the analogRead() inside the if statement:

void loop(){
  
 if(analogRead(flexiForcePin) < 500)
    digitalWrite(13, HIGH);
  else digitalWrite(13, LOW);
 
 if(analogRead(flexiForcePin2) < 500)
    digitalWrite(12,HIGH);
  else digitalWrite(12, LOW);

}

Lefty