Stopping downstream components from calculating

Hi all,

Im required to use a timer to read values from an Arduino - so its constantly firing numbers, most of the time the same numbers. eg: 1…1…1…2…2…2…

Some heavier components downstream are recalculating each cycle! Is there a way to check when the number changes, and only then update the rest of the components? Ive tried using global and sticky variables in python with no luck. (5.2 KB)

I figured out an overly complicated solution, Ive attached a minimal version for those interested. It sends a variable through a global variable between python components, and uses Metahopper’s expire component to trigger it when it detects a new number.

If anyone has a better way, feel free to add!