# Does Node Red work with NFC tags?

**URL:** https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854
**Category:** General
**Created:** [3 July 2019 10:51 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854 "2019-07-03T10:51:25Z")
**Posts on this page:** 11
**Page:** 2

<div class="post-metadata">

### Author: ![primat11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/primat11/32/12185_2.png) [@primat11](https://discourse.nodered.org/u/primat11)
#### Post date: [2 September 2019 13:46 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854/21 "2019-09-02T13:46:01Z")

</div>

Thanks a lot Sir @zenofmud, that's so generous. I will let you know if I need it.  
Regards

---

<div class="post-metadata">

### Author: ![jusembo](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jusembo](https://discourse.nodered.org/u/jusembo)
#### Post date: [7 January 2020 22:34 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854/22 "2020-01-07T22:34:02Z")

</div>

Hello, i'm receiving an error message: "SyntaxError: Unexpected token S in JSON at position 0" unless i'm getting ride of the JSON node then i get this: Size: 8  
{ "cardUID": "550f24d9","cardtype":"MIFARE 1KB" }  
I'm wondering why this: _"Size: 8"_  
Any comments? Thanks

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [7 January 2020 23:52 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854/23 "2020-01-07T23:52:24Z")

</div>

A little more information would be helpful...where are you seeing this error?  
can you identify the node issuing it?  
Where is the data originally coming from?  
what does the data coming out of the originating node look like?

What does the flow look ike? Maybe provide it???

---

<div class="post-metadata">

### Author: ![jusembo](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jusembo](https://discourse.nodered.org/u/jusembo)
#### Post date: [8 January 2020 00:10 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854/24 "2020-01-08T00:10:25Z")

</div>

Hi Zeno, thanks for answering

- error in Debug node
- Issuing node: RFIDReader from: [https://github.com/mxgxw/MFRC522-python](https://github.com/mxgxw/MFRC522-python)
- the flow is here:  
[https://github.com/Pi4IoT/Node-RED/blob/master/RFID/RFID\_RC522.txt](https://github.com/Pi4IoT/Node-RED/blob/master/RFID/RFID_RC522.txt)  
Thanks again, David

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [8 January 2020 00:25 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854/25 "2020-01-08T00:25:52Z")

</div>

Have you looked at the open issues about the python code you are running? (See github)

---

<div class="post-metadata">

### Author: ![jusembo](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jusembo](https://discourse.nodered.org/u/jusembo)
#### Post date: [8 January 2020 13:43 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854/26 "2020-01-08T13:43:26Z")

</div>

i did but havent fiind the solution, my skills are not on the level 🤕

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [8 January 2020 13:47 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854/27 "2020-01-08T13:47:59Z")

</div>

My point was that there are a bunch of issues. You are trying to use code from a couple years ago that hasn't been updated and people are reporting errors with. So you have the choice of diging in and fixing the code or do what you want anothr way.

---

<div class="post-metadata">

### Author: ![henna02](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@henna02](https://discourse.nodered.org/u/henna02)
#### Post date: [4 October 2020 14:34 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854/28 "2020-10-04T14:34:03Z")

</div>

Ciao, potresti inviarmi lo schema per wemos e il codice? Grazie

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [4 October 2020 15:59 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854/29 "2020-10-04T15:59:00Z")

</div>

Ne sarei felice, ma ci vorrà del tempo. Devo scavare e potrebbe volerci un giorno o due.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [5 October 2020 08:31 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854/30 "2020-10-05T08:31:58Z")

</div>

I used the `MFRC522` library at [https://github.com/miguelbalboa/rfid](https://github.com/miguelbalboa/rfid) and you will find many examples there. For Node-RED, you just use an `mqtt-in` node to receive the message being sent by the WeMos.

Here is the `RFID-RC522 to WeMos` wiring diagram I used.

* * *

Ho usato la libreria `MFRC522` su [https://github.com/miguelbalboa/rfid](https://github.com/miguelbalboa/rfid) e lì troverai molti esempi. Per Node-RED, si usa semplicemente un nodo `mqtt-in` per ricevere il messaggio inviato da WeMos.

Ecco lo schema di cablaggio da `RFID-RC522 a WeMos` che ho usato.

 ![Screen Shot 2020-10-05 at 4.31.28 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/1/e1f043007f112636ccdeddf9da2ef2372e75bfad.jpeg)

---

<div class="post-metadata">

### Author: ![henna02](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@henna02](https://discourse.nodered.org/u/henna02)
#### Post date: [5 October 2020 11:40 UTC](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854/31 "2020-10-05T11:40:15Z")

</div>

Grazie. Proverò

[Previous page](https://discourse.nodered.org/t/does-node-red-work-with-nfc-tags/12854.md?page=1)
