Picture of the drain sump cover removed and the bottom of the cover.
The water level sensor receives 12Vdc from the main board, and when water reaches the probes, the voltage will drop to let the Main PCB know the pump needs to activate. If there is no 12Vdc from the Main PCB replace the Main PCB. Example from WKHC252 check your machines individual diagram.
Check the drain line here to make sure there is no damage or debris. The line on the right (if yours is visible), is used at the factory, and will not affect draining or cause an error).