Woodlice respond to dark and damp conditions. They prefer these as it allows them to hide from predators and prevent water loss through their skin.