Dishwasher not draining

Dishwasher does not drain completely at end of cycle. Water stays in bottom of tub. Have checked for clogs/debris in drain. None. Think it may be the pump, turbidity sensor or the motor not reversing, it appears from the 4 wires that it should. Any way to trouble shoot, narrow down the problem?

If the pump runs it’s almost a sure thing that there is some kind of restriction someplace between the sump and the end of the drain hose.