That is the trim sender , other side (port) is trim limit switch. Sender goes to gauge via engine and helm harnesses. sender just varies the resistance depending on position.
Limit switch goes to trim pump, sets how high drive can go up in trim mode before you need to use trailer button to go...