Are you trying to simply know if someones been inside your bedroom or catch someone in particular? Depending on how fancy you wanna get, you could put a sock behind the door or a piece of rubbish as you leave so that when the door gets opened it will have moved, so when you get back you only...