Clean your dishwasher regularly and remove any food particles from the drain and spray arm. Leave your dishwasher door open after running a cycle to allow moisture to escape. Consider running a cleaning cycle using a dishwasher cleaner or a mixture of vinegar and baking soda to remove any lingering odors.