when a function on one Particle devices gives a certain result, call a function on another device