Store a state of a value "flow.set"

  1. Follow.set stores the value in context storage.
  2. Flow.get retrieves data from context storage
  3. each time a function node runs it starts fresh and nows nothing about what happened the last time it ran.

Try adding a
node.warn("Valve30pen="+Valve30pen)
right after the
var Valve30pen - msg. Valve30pen;
statement and see what you get.