All animals try to adapt to the environment to survive. The real question is why do living organisms react to environmental factors? For example, a chameleon will change colors to hide from predators. Bears hibernate in the winter to conserve energy because of the food shortages. Likewise, pill bugs avoid light and try to make homes in dark, damp environments and eat decaying plant and animal matter. The reason pill bugs prefer dark and damp environments is because they behave negatively to phototaxis, which is the response to light, and have a partially positive behavior towards hydrotaxis, which is the response to moisture. The reason I say partial behavior is because they do not prefer to live in an all-dry habitat, but they also do not find large bodies of water an ideal habitat as well. In this specific scenario, the object of the…