How can I use an NFC tag to unlock my device
This can be done since Lollipop with the help of Play Services.


Go Settings > Security > Trust Agents
Enable Smart Lock (Google)
Go Settings > Security > Smart Lock > Trusted Device > Add trusted device > NFC


https://support.google.com/nexus/answer/6093922?hl=en-GB