I have a Whirlpool Duet HT with a F21 error code. I have checked the pump drain and removed some coins and wrappers and gunk. I also removed both drain hoses and cleaned the gunk out of them. The pump will pump the water out when I put it on a drain and spin cycle, but on a regular cycle it gives the F21 error code. Do I need to replace the switch? Part #AP5264563?
I don’t see that part listed for this model (doesn’t mean it’s not) but you can try replacing the water level switch if you are sure the machine is draining properly.