If you are new to Arduino, start by working through the simple examples that come with the program development software (the IDE).
Learn the programming language, the special features of the Arduino (like how to read external signals), and important programming concepts like that presented in the "Blink without delay" example.