Inhibit relay.

Anyone know why the engine doesn’t always start on the key?
it’s got a new starter motor and wiring but it still is a bit hit or miss, I’m suspecting the inhibit relay but are there any other relays that I need to look at?
It’s a new switch system, the original ignition switch wiring through a relay operated by a bike switch.
the new relay operates but sometimes nothing else happens. Seems ok when warm which is why I’m suspicious of the original relays.