: Always place a diode (like a 1N4007) across the solenoid terminals to prevent power spikes from frying your board.
To download a solenoid door lock part for Fritzing, you can use existing community-created library files or standard core parts that share the same electrical footprint. Because Fritzing does not always have a specific "door lock" visual in its core library, users typically download files (part files) or files (project files) from the community. Direct Download Links & Sources Adafruit Fritzing Library download solenoid door lock fritzing
Since there isn't one universal door lock part, you can use these high-quality community and manufacturer resources: : Always place a diode (like a 1N4007)
#define LOCK_PIN 9
For those working on access control or smart lock projects, I’ve just uploaded a – available for download below. Direct Download Links & Sources Adafruit Fritzing Library