HELP: Use Arduino Due To Control Lock Circuit

What tutorial? Give a link.

A transistor with the collector and emitter connected together is not a transistor, it is a diode...

Regards,
Ray L.