in terms of a code I am lost
Start with the simple examples that come with the Arduino program development software. Learn to blink an LED, read a switch or a battery voltage, time a process, etc.
That way you learn the language and the special features of the Arduino.
For specific projects, use searches like "arduino measure motor rpm" to see what other people have done.
If you want someone to write your program for you, post in the Gigs & Collaborations forum section and be prepared to pay.