How to stop updating Set Actor Scale 3D based on external input values?

Hi,

As you can see in the attached image, I’m trying to update the scale of an actor based on the values received through OSC. I’ve a kinect set up; on moving closer to the kinect, the actor scales up and on moving away, the actor scales down. I’m using a cut off point 1.5 to distinguish being the scaling up and down. Since the values are constantly being received and the difference between them is very minute, even on no visible movement, the actor continues to scale up/down until it reaches the limit I’ve set (25 and 15 respectively).

I would like to restrict this scaling when the values are not changing by a lot, or when one is standing still. Can someone please suggest a viable way to achieve this or a better alternative to my approach?