Motor issue

I grew up on boats but I was mostly fishing and not paying attention to anything else. Bought my first offshore boat last year with a 150 Yamaha four stroke. Has been cranking fine until recently maybe the last four or five trips and whenever I just go out in the yard to run it. When you go to crank it the first two times it’ll just click and then usually by the third time it turns over and fires right up. Also sometimes after it cranks the tach and the fuel gauge won’t work until the motor runs maybe 30 seconds then you will hear it rev up on its own and then the gauges start working. I’m probably gonna replace the ignition anyway but does anyone have any ideas what might cause this?