In order to rent a room, you need to agree with the other party how much they will pay; how long they will be there for; and any other obligations you want them to have.