Hi,
I'm looking for a way to control two devices. One is a light and based of the proximity it goes on or off....I have that part working now. The other device needs to be turn on when the light turns on the first time, but then needs run for 10 mins after no matter if the light is on or off.
void loop(void){
if dist1 < onMin){
if dist1 > onMax)) {
digitalWrite(lightPin1, HIGH);
digitalWrite(alarmPin2, HIGH);
}
if dist1 < onMax )){
digitalWrite(lightPin1, LOW);
}
}
}
Thanks
I'm terribly new to this so pardon my clunky coding.