You can keep her in line with the camera, simply checking it periodically. Eventually, she'll run to one of your doors. To check which door she'll run to, you can check the camera Or listen to her footsteps. If they're coming from the left, you should close the left door, and vice versa...