hard part is the motion detection (without detecting he door) must ensure that any detection either stops the motors & goes free or smart enough to know which way to move (open or closed as required to release...and limiting the power if someone or something gets trapped behind or between