Level Switch part number 8061747
An electromechanical level switch operates at two levels, see the electrical schematic diagram. It checks the water level and starts the drain pump if overfilling is indicated.

"Suds are not good"
"They write directions for a reason"
"Make sure you're using it right before you say it's not working correctly"
"If if has a Diagnostic Test Cycle, Run it before and after you fix it!"
"Doing the same thing over and over again and expecting different results is insane"

"For every complex problem there is an answer that is clear, simple, and wrong."
"Occam's Razor 'the simplest answer is most often correct'"