Hi,
Is the washer getting noisy or rough sounding when it spins?
Open the door and spin the tub by hand. Is it rough sounding when you spin it by hand?
If so you tub bearings are going out.
Could be the INERTIAL UNBALANCE switch, factory part number
22003302 There is only one of these switches on the washer.

Or it could be the TUB DISPLACEMENT switch, factory part number
22002044 There are two of these switches on washer.

It may also be the motor or motor control board. In that case you would need the
motor kit, factory part number 12002039I install a lot of these motor kits on this model washer for spin problems.
If the washer is getting noisy or rough sounding I would remove the back and look at the center of the tub for water or oil marks around the bearing.
There should be a tech sheet in the back of the control counsel on top that may help you diagnose it too.
Part #
12002039 Motor - Drve,
AP4010145
