I connect Arduino with my PC with an USB cable and then the sensor to the arduino using a breadboard, same for the data input and output. I'm pretty sure the wiring is correct.
I have tried inserting a delay time of 300ms on the program just before the verifyPassword
void setup()
{
while (!Serial); // For Yun/Leo/Micro/Zero/...
Serial.begin(9600);
Serial.println("Adafruit finger detect test");
// set the data rate for the sensor serial port
finger.begin(57600);
delay(300);
if (finger.verifyPassword()) {
Serial.println("Found fingerprint sensor!");
} else {
Serial.println("Did not find fingerprint sensor :(");
while (1);
}
Serial.println("Waiting for valid finger...");
}
I'm using the adafruit library but there is no change, I still get the same answer