Turn Lights on RC plane Remotely

I wired a Arduino Pro Mini 328 - 5V/16MHz into a 2.4ghz spekrum radio receiver to turn the lights on and off on a RC plane. I plugged the arduino into the unused flaps receiver port.

I am new to Arduino and is there a cleaner way to write this code? The end state is what I have works....

//Pin 7 is the ESC potentiometer from FLAP; out from AUX
//GND and Vin is used from the Spectrum RCVR out from AUX
//Set FLAP settings TX to be 125% and 0%
//Use the debug to measure modulation pulse if need to change 
//duration if statement

int pin = 7;
unsigned long duration;
#define LEDR 11    //the pin for the Red LED
#define LEDG 12    //the pin for the Green LED
#define LEDW 13    //the pin for the White LED

void setup()
  pinMode(pin, INPUT);          //from radio rcvr
  pinMode(LEDR, OUTPUT);    //tell arduino Red LED is an output
  pinMode(LEDG, OUTPUT);    //tell arduino Green LED is an output
  pinMode(LEDW, OUTPUT);    //tell arduino White LED is an output
  Serial.begin(9600);       //setup serial for debug

void loop()
  duration = pulseIn(pin, HIGH);  //read the modulation pulse
  if (duration > 1900){ 
  digitalWrite(LEDR, HIGH);    //turn Red LED on
  digitalWrite(LEDG, HIGH);    //turn Green LED on
  digitalWrite(LEDW, HIGH);    //turn White LED on
  Serial.println(duration);   // debug value to monitor
  } else { 
    digitalWrite(LEDR, LOW);   //else all LEDs off
    digitalWrite(LEDG, LOW);
    digitalWrite(LEDW, LOW);

Don’t airplane lights typically blink?

You might add a delay inside your condition to turn them on after turning them on, then turn them off unconditionally (get rid of else) and add another delay. I am thinking maybe 250 msec. That would cause a slight (<= .25 sec) delay in response to turning the lights on/off.

Thanks I'll try that. I am very new to all of this....