Boat wiring is equally mysterious to me, so I hesitate to comment much further, other than to say that the sender's black lead goes to your boat's ground, and the pink lead goes to the switch. You may also play around with the sender you removed, hooking it up to one, then the other, fore/aft...