Scott halseth the switch is called door sensing switch part number wb24x829.
Fix microwave door latch.
Lift up inner door area on handle side.
The latch assembly is spring loaded to provide the necessary tension to engage the hooks.
How to repair your microwave door latch.
Use care when snapping the latch into the holder.
Since the door hook is made of plastic it can break due to regular wear.
Being a repairman i jury rigged it and it lasted several years but it failed completely this time and had to be replaced.
You could use a multimeter and see if you get.
I used a butter knife gently pry off the cover around glass on back of door.
Tightening the hinges on your microwave door is a task you can perform yourself in a matter of minutes.
Locate and remove the door latch assembly.
Took cover off removed timer panel assembly and replaced door latch.
I felt there was a good possibility that the bottom one would bend out over time and watched a fix where another guy cut a popsicle stick to size to wedge in and prevent the bottom flexing.
If the door hook is broken replace it.
If the door hook is broken it won t relea.
For safety disconnect your appliance from the power source before beginning.
The latch originally broke when the microwave was just over a year old.
The door hook engages with the door latch to keep the door closed during operation.
It will be found behind the inner door panel.
Remove broken latch replace with new latch some playing around make sure spring moves freely.
Se the door properly preventing the door from opening.
I found the microwave door latch still flexed too much as there are two locking latches that go into the latch assembly.
How to inspect a microwave door latch assembly.
Unscrew 4 screws on back of door in channel that has bee exposed.
There may be more than one.
Ge microwave oven.
When the door is opened during a cook cycle the monitor switch door sensing switch primary interlock switch and power relay are deactivated.