Shifting code from PICAXE to Arduino

Start by looking at the examples in the IDE. They will show you how to read the state of a pin (either analogue or digital) and drive an LED pin HIGH or LOW.

Write out the logic of your program in pseudo code before writing it for real.