Gauges go to full when headlights on

This is something that has happened with the car just sitting outside. I haven't had a battery for it in a few months. But when I tried it a few months ago everything was working the way it should. I know there is an extra unused connection on the new headlight switch. Should I make it a ground? The dash harness is a new one from year one.