It may be your filter. Remove the front panel under the door by removing 3 screws. The filter is white with a twist-off cap. 3 red rubber tabs hold it in place. Remove filter from tabs. Place bucket under filter and remove cap. Remove debris and replace. Worked for me!
If you face such a problem first of all you go with trouble shoot of the Whirl pool Washer manual (check the model number) find the answer which you facing the errors.Mostly for all the Automatic washin machine getting the problem with Main Control Module (PCB) and if display PCB (Display Module)is there also you can check it.
The problem with the washer is usually the hoses themselves If they are on a high angle you can get air gaps in the hoses, and the f20 error will appear, readjust the hoses, and reset machine.