I just did my, i hope this will help. the Wire is latch on the end of the sensor, you have to pull up on the tab and it should come off, you will see how it works after you remove it. it takes a 7/8" deep socket ( ?? ) comes out easy.( do not do what i did and drop the socket down between the bell housing and the sheet metal) You are better off if you try to put the new one in by hand first, then use the socket.
I had a code 43 and replace the sensor and the esc, still have code 43.
good luck