Press on pressure sensor, then wait 5 seconds, turn on LED
The basic concept for tracking timing in the loop() is as follows:

1) when your event occurs, you store the current time in a variable: 

unsigned long lastReading = 0;
uint8_t waiting = false;

if ( !waiting &amp;&amp; fsrReading &gt; 1022 ) {
  lastReading = millis();
  waiting = true;
}


2) you compare the lastReading variable against the current time and when enough time has passed, you can perform you timed action. ie:

int timeToWait = 5000; // 5 seconds

// are we waiting? and has enough time passed?
if ( waiting &amp;&amp; millis() - lastReading &gt; timeToWait ) {
   waiting = false; // reset

   // Light up lights
   ...
}


Note: this specific implementation only requires the sensor to rise above 1022 once, then wait 5 seconds before executing the timed action. If you want the sensor reading to be maintained above 1022 for the entire duration then you would add a check for a release with something like:

if ( fsrReading &lt; 1022 ) {
  waiting = false; // reset because reading fell below 1022
}