As the water fills the hose while tub is filling it will push the air against a diaphragm inside the switch.
Maytag washer pressure switch hose.
Step by step instructions on how to replace a water level pressure switch hose wp22001619.
It helps determine the level of water in the washer.
Clogged drain hose house drain clogged bad drain pump water level pressure switch failure bad control board or timer.
However the washer can overflow or not fill at all if the switch does not work.
Your appliance may differ depending on the manufacturer and model.
This switch controls the amount of water in the washer.
More water that enters the tub more pressure is applied against the switch.
Maytag mav6000aww washer parts manufacturer approved parts for a proper fit every time.
Maytag washer top loading lat9704aal my repair advice.
This video is intended to give you the general idea of the part replacement procedure.