
9. MODIFY THE CODE
This step allows us to change the status of the
solenoid after a successful reading from the
fingerprint sensor. When the solenoid is given
power, it will retract.
Add int lock = 5; before void setup (){
Add pinMode(lock, OUTPUT); after void
setup (){
Where the code returns a successful attempt to
the serial monitor, add the following lines:
digitalWrite(lock, HIGH);
delay(5000);
digitalWrite(lock, LOW);
Upload the code to the Arduino and test the lock.
10. TEST THE LOCK
Give the sensor a few test runs. Don't be
discouraged if it doesn't work the first time. Every
attempt is a key part of the learning experience!
I used the Adafruit ...