A tachometer is a device for indicating the rotary speed of a rotating shaft. It…