Follow the wires. If it is a level sensor switch, one side should be fed from the tanks, and the output should go to the fuel gauge on the dash. (could be to the yamaha gauge depending what gauge you have).
What happens when you hit the switch? If it switches the sending units, you should...