Figure out an if else

This should be unsigned long

long time = micros( );

Do you you ever need this pin to go Low?

digitalWrite( QRE1113_Pin, HIGH );