If the door switch is stuck on a dishwasher, the first thing an owner should look at is the door catch. Located at the top of the dishwasher tub, it can sometimes move out of place.
If the door catch is not adjusted in the right way, it may cause the latch to operate incorrectly. This can prevent the dishwasher from working or cause the door to not shut tightly. It's also possible that the door latch may have worn out and doesn't create a seal. In this case, the door latch needs to be replaced.
If the door switch causes the door latch to not work correctly, it may have no electricity coming through. If this is suspected, the switch should be checked with a multimeter. Usually, this is an easy fix, even for someone who does not have a lot of mechanical ability. Videos on PartsDirect.com and other replacement parts websites can help guide a person through the repair.
This is the most common reason for a door switch on a dishwasher to malfunction, but there are other reasons this may occur, too. However, these repairs are much more difficult and likely require the assistance of a professional repair technician.