I would make a smart washing machine, every piece of clothing could have a sewn in RFID tag to let the machine know what was inside, and then it would adjust the wash settings appropriately. It could also give you warnings, like “Red baseball cap found in white laundry load, may cause color bleed”.