You are now saying the motor control could be the problem, but not sure. That is an expensive part to replace for an unsure problem. What about the control circuit board.
In answer- the only 3 things that could cause the problem are the sensor- that has been replaced with a new one and it test ok. Even running the machine with it disconnected so it cannot give an off balance signal gives the same out of balance signal. That leaves the the pulley and clutch assembley. The spring inside the clutch assembly was broken. Repaired it, but did not buy a new assembly. The rest of the assembly appeared to be normal. Reran the machine and instead of a UC code, the machine now gives a DC code in the spin cycle. That leaves the motor control board as the only other possible cause. My next step would be to buy a new clutch assembly. If that does not work, that means a new motor control board. At that point, my cost will be greater than replacing the washer with a new one. Please stick with me for another day or so until I can determine if the pulley and clutch assembly still has issues.