There is no sensor, it is the door switches that close and let the dishwasher operate.
The switches are located in the door latch assembly.
Turn the power off to the dishwasher and open the control panel.
Check the latch assembly for cracks.
Here is the switches and holder assembly.  |