LG top loading water level not correct

Hello,

I have a top loading LG TS1632AFPS5, it had an error on the screen (PE) after powering it on it stops and gives the error (PE), after a bit of searching it turned out the water level sensor is faulty and I replaced it.

Now it’s working again but can’t get the water level right! Each time it gets more water than it should and starts draining the excessive water while working and keeps getting water and drains it and so on.

I checked the water level sensor tube and it is ok, the new sensor is the same part number as the old one (6501EA1001) original LG part.

Now I am baffled and don’t know what might be the problem.