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

Which bit isn't working?

1 Like