# How to convert the IR sensor values into appropriate payload values (which were to be sent via mqtt)

**URL:** <https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [26 November 2021 07:31 UTC](https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305 "2021-11-26T07:31:15Z")\
**Posts on this page:** 9\
**Page:** 2

<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 November 2021 11:56 UTC](https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305/31 "2021-11-26T11:56:42Z")

</div>

I think it might have been a lot easier if you had used separate MQTT topics for each LED.

---

<div class="post-metadata">

**Author:** ![joan895](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@joan895](https://discourse.nodered.org/u/joan895)\
**Post date:** [26 November 2021 11:58 UTC](https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305/32 "2021-11-26T11:58:56Z")

</div>

how can we make separate topics for each led

---

<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 November 2021 12:01 UTC](https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305/33 "2021-11-26T12:01:26Z")

</div>

Having gone to all this effort just to find out exactly what question you were trying to ask then get it working as you have it now.

---

<div class="post-metadata">

**Author:** ![joan895](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@joan895](https://discourse.nodered.org/u/joan895)\
**Post date:** [26 November 2021 12:47 UTC](https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305/36 "2021-11-26T12:47:32Z")

</div>

it worked thank you very much

---

<div class="post-metadata">

**Author:** ![Antonio4060](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@Antonio4060](https://discourse.nodered.org/u/Antonio4060)\
**Post date:** [26 November 2021 13:06 UTC](https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305/37 "2021-11-26T13:06:40Z")

</div>

Thank you very much, you saved our semester, we are grateful.

---

<div class="post-metadata">

**Author:** ![molesworth](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/molesworth/32/11748_2.png) [@molesworth](https://discourse.nodered.org/u/molesworth)\
**Post date:** [26 November 2021 17:00 UTC](https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305/38 "2021-11-26T17:00:34Z")

</div>

All the deleted posts made this pretty much impossible to understand. Was there anything useful or interesting discussed here, or just basic MQTT stuff?

---

<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 November 2021 17:26 UTC](https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305/39 "2021-11-26T17:26:33Z")

</div>

It wasn't actually about mqtt at all, or about Arduino code. It was about how to convert the IR sensor values into appropriate payload values (which were to be sent via mqtt). The deleted posts were not relevant.

---

<div class="post-metadata">

**Author:** ![Antonio4060](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@Antonio4060](https://discourse.nodered.org/u/Antonio4060)\
**Post date:** [27 November 2021 02:24 UTC](https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305/40 "2021-11-27T02:24:23Z")

</div>

Sorry for deleting the images, but it was to make the post more understandable.

and thank you very much, you really saved us  
by @KevinGallardo619, @joan895 and @Antonio4060

---

<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:** [11 December 2021 02:25 UTC](https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305/41 "2021-12-11T02:25:06Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/how-to-convert-the-ir-sensor-values-into-appropriate-payload-values-which-were-to-be-sent-via-mqtt/54305.md?page=1)
