Hi, welcome to this forum,
Probably by using an array.
int analogArray[16]; // Declare array to store values of all analogue pins
void setup() {
Serial.begin(115200);
// Here's the answer to your question
for (int x = 0; x < 16; x++) {
analogArray[x] = analogRead(x);
delay(1); // some settling time for the ADC before next reading is started
}
// Show values read
for (int x = 0; x < 16; x++) {
Serial.print("Analog value of pin A");
Serial.print(x);
Serial.print(" is ");
Serial.println(analogArray[x]);
}
}
void loop() {
// put your main code here, to run repeatedly:
}