Sorry, I don't think I explained it well enough. The switch(s) are an electrical component that are operated by the door latch. When the latch is opened or closed the switches stop/start the operation of the microwave. They are located under the cover. The connections/switches can get dirty.
__________________
|