please help

int sensor1 = 3;
int sensor2 = 4;
int sensor3 = 5;
int sensor4 = 6;
int relay1 = 8;
int relay2 = 9;

void setup() {

pinMode(sensor1, INPUT_PULLUP); //
pinMode(sensor2, INPUT_PULLUP);
pinMode(sensor3, INPUT_PULLUP);
pinMode(sensor4, INPUT_PULLUP);
pinMode(relay1, OUTPUT);
pinMode(relay2, OUTPUT);
}

void loop() {

if(digitalRead(sensor1) == HIGH && digitalRead(sensor2) == HIGH){

digitalWrite(relay1, HIGH); // when sensor1 and sensor2 active toghter , then active relay1

delay (6000); // Realy active for one minitue

digitalWrite(relay1, LOW); // keep relay1 off until active sensor1 and sensor2
}

if (digitalRead(sensor3) == HIGH && digitalRead(sensor4) == HIGH){

digitalWrite(relay2, HIGH); // when sensor3 and sensor4 active toghter , then active relay2

delay (6000); // Realy active for one minitue

digitalWrite(relay2, LOW); // keep relay2 off until active sensor3 and sensor4
}
}
// need to replace with millis() insted of delay

Please read this:

What sensors are you using? Are you sure you need INPUT_PULLUP?

What needs to happen if the sensors are triggered while the relay is already active?

delay (6000); // Realy active for one minitue Just a single order of magnitude out.

GypsumFantastic:
What sensors are you using? Are you sure you need INPUT_PULLUP?

What needs to happen if the sensors are triggered while the relay is already active?

with motion sensors , PULLUP used only for testing ( without sensor)

if the sensors are triggered and relay is already activated , need to cut off one Minuit from last trigger

Do you fully understand the BWD example in examples of the IDE?

If not understanding, what are you having trouble with?

larryd:
Do you fully understand the BWD example in examples of the IDE?

If not understanding, what are you having trouble with?

i don't

i need to active one output for 60s , when two inputs state high (same time) ,

also

another one output active 60s , when another two inputs states are high (same time)

The demo Several Things at a Time is an extended example of BWoD and illustrates the use of millis() to manage timing without blocking. It may help with understanding the technique.

Have a look at Using millis() for timing. A beginners guide if you need more explanation.

...R

please make one sketch for me

bijitha:
please make one sketch for me

To do what?

If you want someone to write a program for you please ask in the Gigs and Collaborations section of the Forum and be prepared to pay.

...R