Hermit crabs choose and change their shells based on the size, shape, and weight of the shell. They usually use their sense of smell and touch to assess if a shell is suitable for them. When they outgrow their current shell, they search for a new one to move into. This process is essential for their growth and protection.