simple motion sensor

AWOL:
Spelling good, syntax bad.

const int sensorPin1 = 14;   
const int sensorPin2 = 15; 
const int sensorPin3 = 16; 

const int ledPin1 = 11;        
const int ledPin2 = 2;
const int ledPin3 = 3;
const int ledPinMain = 4;

int sensorValue = 0;         // the sensor value
int sensorMin = 1023;        // minimum sensor value   
int sensorMax = 0;  

void setup() {
  // turn on LED to signal the start of the calibration period:
  pinMode(11, OUTPUT);
  digitalWrite(11, HIGH);

  pinMode(2, OUTPUT);
  digitalWrite(2, HIGH);

  pinMode(3, OUTPUT);
  digitalWrite(3, HIGH);

  // calibrate during the first five seconds 
  while (millis() < 5000) {
    sensorValue = analogRead(sensorPin1);

    if (sensorValue > sensorMax) {
      sensorMax = sensorValue;
    }

    // record the minimum sensor value
    if (sensorValue < sensorMin) {
      sensorMin = sensorValue;
    }
  }
  digitalWrite(ledPin1, LOW);

  sensorValue = analogRead(sensorPin2);




  // record the maximum sensor value
  if (sensorValue > sensorMax) {
    sensorMax = sensorValue;
  }

  // record the minimum sensor value
  if (sensorValue < sensorMin) {
    sensorMin = sensorValue;
  }

  digitalWrite(ledPin2, LOW);

  sensorValue = analogRead(sensorPin3);

  if (sensorValue > sensorMax) {
    sensorMax = sensorValue;
  }

  // record the minimum sensor value
  if (sensorValue < sensorMin) {
    sensorMin = sensorValue;
  }

  digitalWrite(ledPin3, LOW);
}

void loop () {


}

is it a better syntax? it works with the compiler

does it make sense?