Most Yanmar's have a tach sensor on the fly wheel housing.
Here's a link to the shop manual which can be downloaded for free.
Here's a link to the shop manual which can be downloaded for free.
Download Yanmar 4JH2E Service Manual | ManualsLib
www.manualslib.com