Keep it clean
Dishwashers themselves need a regular clean to remove bacteria and food particles. Place a cup of white vinegar on the upper rack and run the machine on its hottest setting. Another option is to use a proprietary cleaner, such as Dr Beckmann Service-it Deep Clean Dishwasher Cleaner. In between deep cleans, make sure the filter is regularly unblocked and cleaned and keep the salt and rinse aid topped up.