to many new terms.
please be lenient.
changed
while (millis() < 5000) {
sensorValue = analogRead(sensorPin1);
sensorValue = analogRead(sensorPin2);
sensorValue = analogRead(sensorPin3);
// record the maximum sensor value
if (sensorValue > sensorMax) {
sensorMax = sensorValue;
}
// record the minimum sensor value
if (sensorValue < sensorMin) {
sensorMin = sensorValue;
}
}