Pillbugs and sowbugs are closely related to insects. They live in moist areas and feed on decaying organic material. They may move indoors through doors and windows, and may remain indoors when there are moist areas available.
Remove excessive mulch and organic matter around doors, seal doors and windows. Use a vacuum to remove from carpet, use a heater to dry the areas they are infesting.