The most common issues are to do with drainage and associated pipes to sensors. Thorough clean out the waste in the bottom of the dishwasher. Use a hose pipe to flush the drain of any food debris. Use a small cup to remove any water that won't be removed by the pump when the door is shut.
Regularly run the dishwasher on maximum heat and duration to basically self flush the pipework