Hi,
As you say, you've only got it calling getFingerprintIDez() the once at the end of starPressed().
Serial.println("Waiting for valid finger...");
getFingerprintIDez();
To get it to hang about repeating that scan for 20 seconds, you could do something like this:
Serial.println("Waiting for valid finger...");
unsigned long timeNow = millis();
while (millis() - 20000 < timeNow) getFingerprintIDez();
That should get you on your way ![]()
All it does is stores the value of the millis() timer then stays in a loop repeating getFingerprintIDez() until millis() progresses 20,000 ticks past the stored start time.
Cheers ! Geoff