I removed the screws to separate the inner and outer door parts, removed the switch cover, replaced the plunger and spring, then reassembled. It took 5 minutes and solved the problem. The issue was that the dishwasher didn’t think the door was shut because the plunger wasn’t activating the switch properly.