# MQTT. Thingspeak

**URL:** https://discourse.nodered.org/t/mqtt-thingspeak/28898
**Category:** General
**Created:** [24 June 2020 15:39 UTC](https://discourse.nodered.org/t/mqtt-thingspeak/28898 "2020-06-24T15:39:40Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [26 June 2020 12:36 UTC](https://discourse.nodered.org/t/mqtt-thingspeak/28898/17 "2020-06-26T12:36:47Z")

</div>

Ok, so that flow works because the `mlx-sensor` node it uses creates a message containing `object` and `ambient` as properties.

You have a different message coming from the DHT node - so you need to understand the structure of that message and identify what properties are the ones you want to send to Thingspeak.

From the other thread, you did share a picture showing the Debug output for the node - [MQTT.FX Thingspeak](https://discourse.nodered.org/t/mqtt-fx-thingspeak/28830/5)

It appears you have `msg.payload` as the temperature reading and `msg.humidty` as the humidity.

So a starting point would be to replace `msg.payload.object` with `msg.payload` and replace `msg.payload.ambient` with `msg.humidity` in your Function node.

---

_[View the full topic](https://discourse.nodered.org/t/mqtt-thingspeak/28898)._
