# Object to number Conversion

**URL:** <https://discourse.nodered.org/t/object-to-number-conversion/24807>\
**Category:** General\
**Created:** [14 April 2020 12:16 UTC](https://discourse.nodered.org/t/object-to-number-conversion/24807 "2020-04-14T12:16:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [14 April 2020 12:36 UTC](https://discourse.nodered.org/t/object-to-number-conversion/24807/2 "2020-04-14T12:36:13Z")

</div>

Hi @Robbie98

can you share what the Debug output shows for the message coming from the SenseHat node? If I remember the node correctly (I did write it....), it sends a payload of `{temperature: 12}`.

I can see you have added a JSON node - that will be converting the object to a string. That will make it harder to access the individual values inside the string.

I _think_ you just need the Change node between the SenseHat node and the gauge node, configured to set `msg.payload` to `msg.payload.temperature`.

---

_[View the full topic](https://discourse.nodered.org/t/object-to-number-conversion/24807)._
