if pin 1 is high in 3seconds led will turn on else ignore .(if statement .help.)

Have a look at, and more importantly play with, the blink without delay example in the IDE, without delay.