# Node-RED working on Raspberri Pi but not on PC!

**URL:** <https://discourse.nodered.org/t/node-red-working-on-raspberri-pi-but-not-on-pc/19592>\
**Category:** General\
**Created:** [26 December 2019 11:23 UTC](https://discourse.nodered.org/t/node-red-working-on-raspberri-pi-but-not-on-pc/19592 "2019-12-26T11:23:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saeed1](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@saeed1](https://discourse.nodered.org/u/saeed1)\
**Post date:** [26 December 2019 11:23 UTC](https://discourse.nodered.org/t/node-red-working-on-raspberri-pi-but-not-on-pc/19592/1 "2019-12-26T11:23:54Z")

</div>

1. I am reading data of a humidity sensor with Node-RED

2. I am using Arduino Uno + Ethernet shield to publish data by using mqtt.

3. I am publishing data after each 3 seconds. Data is just single value like 30

4. I am using PubSubClient library

If i use mosquitto and Node-RED on my laptop. Then Node-RED stops taking sensor data after almost 40 seconds.

But

If i use mosquitto and Node-RED on my Raspberri pi. Then Node-RED keeps taking sensor data. Works every thing fine.

Really curious to know about this !!! Need your help

Thanks.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 December 2019 17:03 UTC](https://discourse.nodered.org/t/node-red-working-on-raspberri-pi-but-not-on-pc/19592/2 "2019-12-26T17:03:46Z")

</div>

Use mosquitto\_sub to see whether it is getting to mosquitto.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [26 December 2019 19:50 UTC](https://discourse.nodered.org/t/node-red-working-on-raspberri-pi-but-not-on-pc/19592/3 "2019-12-26T19:50:38Z")

</div>

Hi @saeed1.

Something else to try:

On your laptop, create a small _flow_ where you get an `inject` node and connect it to a `mqtt out` node and set it to publish to a channel `test`.

Then get a `mqtt in` node and subscribe it to `test`. Connect that node to a `debug` node and activate the node to display its data.

`Deploy` and press the `inject` node every 30 seconds.  
See how long that works.

That will help determine if the problem is in the unit sending the data or the reception of the data.
