want, for example, to make this thing:
If x=1 then y=1 only if z=1 and if x=2 then z=2
If door sensor is close, turn on the fan only if the motion detector detect any movement. After if the door is open, just stop the fan...
How can I do that? Using multiple flows?