Trouble scaling an value from payload

I have a workflow grabbing 2 devices via a particle integration and updating attributes via Device state using Device id on the payload.
I need to scale these before showing on a dashboard.
But in put from these devices are not always on the payload.
How do I best do this?

Hi Lars,

Could you clarify this question for me? Are you saying you don’t always know the device ID when the Particle Node triggers?

Thanks!
Julia

all tags were not always in every transmission, but I’m now verifying the payload before scaling.