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

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

how can we make separate topics for each led

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.

it worked thank you very much

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

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

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.

3 Likes

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

2 Likes

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