defining multiple sensors for data acquisition

I've got it returning the values from multiple sensors but I'm not grasping how to have it say "sensor 1: 55%" "sensor 2: 51%" etc...

I used pre-existing code for 1 sensor and modified it to return the values of multiple sensors, but I also need it to identify which sensor is which.

int sensorPin = A0;
int sensorValue = 0;
int percent = 0;
int sensorPin1 = A1;

void setup() {
Serial.begin(9600);
}

void loop() {

sensorValue = analogRead(sensorPin);
percent = convertToPercent(sensorValue);
printValuesToSerial();
delay(1000);
sensorValue = analogRead(sensorPin1);
percent = convertToPercent(sensorValue);
printValuesToSerial();
delay(1000);
}

int convertToPercent(int value)
{
int percentValue = 0;
percentValue = map(value, 1023, 465, 0, 100);
return percentValue;
}

void printValuesToSerial()
{
Serial.print("\n\nAnalog Value: ");
Serial.print(sensorValue);
Serial.print("\nPercent: ");
Serial.print(percent);
Serial.print("%");
}

You use the same function to output the data, with no input to change what the output is.

Given that, you can hardly expect to know which line of output corresponds to which sensor.

If you passed a sensor number to the function...

The joy of functions is that they can take arguments. You want to perform the same set of operations on multiple analog input pins so you could put everything in one function:

void processPin( int inputNumber, int pinNumber) {
  int sensorValue = analogRead(pinNumber);
  int percent = map(sensorValue, 1023, 465, 0, 100);

  Serial.print("\n\nAnalog Value ")
  Serial.print(inputNumber);
  Serial.print(": ");
  Serial.print(sensorValue);
  Serial.print("\nPercent: ");
  Serial.print(percent);
  Serial.print("%");
}

Then your loop() just becomes:

void loop() {
  processPin(1, A0);
  delay(1000);
  processPin(2, A1);
  delay(1000);
}

If you have more than a few pins to process you could use arrays and a loop to process them in sequence.

Thank you both for the response- and especially the explanation's.

I am extremely green (actool is about the only thing i've ever really messed with much, similar kinda but not really) I'm trying to learn as I go on a project