If you replaced the trim limits and trim senders and it doesn't work, suspect the wiring. Both sender and limit were open to the water, which doesn't help.
IMO, the wiring had every chance to be pinched by the outdrive, and needed to pass thru the outdrive hull fitting to reach the dashboard...