It is not because the dishwasher is used to wash dishes that it is clean. Dishwasher soaps and rinse aid do not disinfect the appliance; on the contrary, they leave residues behind!
Same for the food that accumulates in the bottom of the dishwasher and that leave dirt behind them and, which is much more unpleasant, odors of moisture, musty...
It is therefore important to regularly wash the inside of the dishwasher and the method is simple. Do not buy very expensive tablets at the grocery store: my recipe is also good and it will cost you almost nothing.
In the dishwasher, place one glass into the upper basket and fill it with white vinegar.
sprinkle the inside of the dishwasher with baking soda.
Start the cycle of the dishwasher without adding anything to it.
When you open the door, the bad odors will be gone and the interior will be clean and disinfected. The trick is demonstrated in this short video.