Medical scrub sink water control system coding

I new here
looking for programmer
I don't know anything
if anyone interested to code simple medical scrub sink water control system
please contact me
anishad7@gmail.com my mail id

hello everyone
I'm new here and noob in programming
can somebody help me to write a simple code on Arduino nano?
I'm planning to make a medical scrub sink water control system using ir sensor module, Arduino nano, relay and solenoid.
how to write such a code which runs such a way that only ON solenoid when something detect ir sensor and it turned on for 30 sec, if it detect signal when it's ON condition then it's should be turn OFF?
thanks in advance :slightly_smiling_face:

You say that you want help. What have you written so far ?

"... if it detect signal when it's ON condition then it's should be turn OFF..." This looks wrong. In any case, if you want code written for you, forget about the Arduino ecosystem and go to Gigs and Collaborations and don't forget your wallet.

@UKHeliBob

int dip = 4;
int ledOut =13;
int relayOut =8;
int indicator =3;

void setup() {
pinMode(ledOut, OUTPUT);
pinMode(relayOut, OUTPUT);
pinMode(indicator, OUTPUT);
pinMode(dip, INPUT);

digitalWrite(relayOut,LOW);
digitalWrite(ledOut,LOW);
}

void loop() {

if (digitalRead(dip) == HIGH)

{
digitalWrite(ledOut,1);
digitalWrite(relayOut,1);
digitalWrite(indicator,1);

delay(30000);

digitalWrite(ledOut,0);
digitalWrite(relayOut,0);
digitalWrite(indicator,0);

}
}

TOPICS MERGED.