Can’t quite make out enough detail in those photos, there’s weird patterning over them almost like they’ve been photographed off another screen.
I think the engine pickup one is correct and the second shot looks as if the triangular connector has the right colours to be the speedo sensor. Oddly, the Yamaha diagram shows White, Blue, Black going to White, Blue/Yellow, Black/Blue… looking at an old sensor I have it actually has Red, White, Black wires coming from it which looks (I think) like what you have there. I’d expect the white wire to be the one with the wanted pulses, but maybe someone else can confirm.