# No data from the sensor in the MQTT node

**URL:** https://discourse.nodered.org/t/no-data-from-the-sensor-in-the-mqtt-node/89873
**Category:** General
**Created:** [30 July 2024 08:44 UTC](https://discourse.nodered.org/t/no-data-from-the-sensor-in-the-mqtt-node/89873 "2024-07-30T08:44:52Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Kralle](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kralle](https://discourse.nodered.org/u/Kralle)
#### Post date: [30 July 2024 08:44 UTC](https://discourse.nodered.org/t/no-data-from-the-sensor-in-the-mqtt-node/89873/1 "2024-07-30T08:44:52Z")

</div>

Hello,  
I need your concentrated knowledge.  
I ordered a new sensor (Dragino CPL03-LB)  
I registered the sensor in the TTN and inserted the appropriate payload formatter. The sensor is sending, I see that in the TTN.  
Username and API key created.  
Created and configured an MQTT node. “Connected” will appear under the icon. It is not the first flow with Dragino sensors and MQTT nodes. Debug node in output shows no data or error message. What could that be?

---

<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: [30 July 2024 08:52 UTC](https://discourse.nodered.org/t/no-data-from-the-sensor-in-the-mqtt-node/89873/2 "2024-07-30T08:52:10Z")

</div>

Well,

You haven't really shared any information so help will be scarce.

1 - you need to check on this _TTN_ system what you are receiving.  
What is the message structure?

2 - What happens if you put a `debug` node on the `MQTT IN` node set to display `complete message`?

3 - What is the `topic` you put in the `MQTT - IN` node?

---

<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: [30 July 2024 08:58 UTC](https://discourse.nodered.org/t/no-data-from-the-sensor-in-the-mqtt-node/89873/3 "2024-07-30T08:58:23Z")

</div>

If you install MQTT Explorer on your PC and connect to the MQTT broker then it will show you all the data being published so you can find out what topic you need to subscribe to.

---

<div class="post-metadata">

### Author: ![Kralle](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kralle](https://discourse.nodered.org/u/Kralle)
#### Post date: [31 July 2024 10:46 UTC](https://discourse.nodered.org/t/no-data-from-the-sensor-in-the-mqtt-node/89873/4 "2024-07-31T10:46:55Z")

</div>

That was very helpful. Data in MQTT Explorer right there. I had entered the MQTT node in the topic (v3/contact..instead of v3/kontact.... But I was still connected. Thank you very much!

---

<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: [31 July 2024 13:33 UTC](https://discourse.nodered.org/t/no-data-from-the-sensor-in-the-mqtt-node/89873/5 "2024-07-31T13:33:58Z")

</div>

> [@Kralle](#):
>
> But I was still connected.

Connected means that it has connected to the browser. The node has no way of knowing whether anything will ever be published on the topic that you specify.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [14 August 2024 13:34 UTC](https://discourse.nodered.org/t/no-data-from-the-sensor-in-the-mqtt-node/89873/6 "2024-08-14T13:34:34Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
