Dogs use their senses to adapt to new environments as well as putting to use thousands of years of selective breeding and training. Generally, puppies have an easier time adapting to new situations than adult dogs.
The sensory organs of dogs help them to process information about their surroundings and allow people and dogs to communicate non-verbally, creating an understanding between the two. Misunderstandings between dog and human still occur, but generally the dog's senses increase its perception of what is expected.
Evidence suggests that early humans bred and trained wild wolf puppies to perform tasks such as hunting and guard dog duties to help families survive. Over thousands of years, the wolves came to have the traits people required in their working dogs and pets. In these ways, dogs adapted to a new kind of life.