Since C6 is an event (falling) and not a state, it cannot be a decision-item ('if') of your flow diagram... it is the trigger of getting that flow going... (your 'flow-loop'-pattern may come from the typical implementation in an Arduino execution loop). Because you mention a Door, the door does something to trigger your sensor to create a falling signal. Is the event - A) 'door just closed', or - B) 'door just opened'? You also have a crossed-out timer. What was the original purpose of it?
Since only a door event makes something happen, I'm not clear what is going on. A more detailed description - and even a picture of your setup could help.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Since C6 is an event (falling) and not a state, it cannot be a decision-item ('if') of your flow diagram... it is the trigger of getting that flow going... (your 'flow-loop'-pattern may come from the typical implementation in an Arduino execution loop). Because you mention a Door, the door does something to trigger your sensor to create a falling signal. Is the event - A) 'door just closed', or - B) 'door just opened'? You also have a crossed-out timer. What was the original purpose of it?
Since only a door event makes something happen, I'm not clear what is going on. A more detailed description - and even a picture of your setup could help.