when she comes out from the left, go in and turn the vertical device until it gets 100% blue, then quickly hide again either on the right or below. When she goes back to the left she'll stop to turn the device back to normal and that's when you get enough time to open the door and escape