The easier way would be to just make use of a closed position switch so that as soon as the door is open it will trigger the activation of the air curtain.