Don't bother detecting motion in the space in the room--just attach an accelerometer to the door. It's not going to be touched unless someone's coming in, and they'll usually start to close it before they step inside. That is, if it is closed by default. Open by default might be harder.