Cannot read property "Temperature" of undefined

I'm sure others have asked similar here before, but can anyone spot the cause of this error in the debug bar (screenshot below)?

I have used the little "copy path" button to ensure I have the correct object path. I think it may be related to "AM2301" consisting of numbers. I have also tried using square bracket notation i.e. msg.payload[AM2301].Temperature

You destroy the payload object inside the 1st if

Use else if for the 2nd if

Duh, that was obvious but I missed it :slight_smile: Thanks!

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