Pan and Tilt Camera problems

PROBLEM 1: I have my camera wall mounted. When the camera rotates to where it sees the wall it senses the IR light as motion and rotates to where it is completely facing the wall.
PROBLEM 2: If I set up a motion zone, it doesn’t work because the zone doesn’t stay in sync with the camera movement. Tried to set up a pet command to get off the table, the camera moves and the zone stays put making the area not be on the table most of the time.