IF you can get at where that wiring harness comes through the transom mount (right by the steering arm if I remember right). It is the same on the OMC Cobra (Volvo just slightly modified the OMC transom mount when they designed the SX model). On my boat this would be very difficult to access so my mechanic came up with a work around that involved drilling a hole in the side of the transom mount outside plate, cutting the terminals off the harness and running the wire out the side of the transom mount and up the transom above the water line into a clamshell cover. Just like the wiring for a transom mount transducer. I have changed it a few times and with this modification its a 10 min job the other way very difficult. BTW, the trim senders that have lasted the longest for me was an aftermarket Sierra one (the OE one for Cobras is NLA), the one on there has lasted 5 years which I never got out of the OE ones.
https://www.dropbox.com/s/f6777spyd01u8 ... a.JPG?dl=0You can see the wire coming out of the right hand side of the transom mount in this pic....
Check the access you have, you might be able to get at it if you have to replace the sender but many people don't bother because the access is so difficult on most boats....