You can start by referring code here.
First, you need permission for NFC. Then you have to add tech-list (frequencies of NFC).
Then, the below line can receive the Nfc adapter data.
Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
Hope this helps!