Pill bugs prefer to live in areas that are extremely moist. Due to their body's inability to hold water, they hide throughout the day to avoid sunlight. The typically live in flowerbed mulch and eat vegetables or other rotting vegetation.