With Key ON, see if you have 12V at the gauge
Have 12V - ground the wire going to the sender
Did gauge peg full up Yes, gauge is good, If no then gauge is bad
Gauge did peg full up - disconnect sender wires going into the transom.
Connect the two wires together coming from trim gauge and ground.
If gauge pegs full up, wires going to gauge are good, and sender on outdrive is bad