sensor 4 sec delay then turn on relays

I was sure I asked you to "Take a look at the Blink Without Delay Example in the Arduino directory.". Perhaps I should have been more clear.

Take a look at the Blink Without Delay Example in the Arduino directory. Play with it. Change things in it, and see what it does. When you understand what Blink Without Delay does, you problem will be solved.