const int ldr1 = A0;
const int ldr2 = A1;
const int urip = 9;
int ldrValue1 = 0;
int ldrValue2 = 0;
const int threshold = 500;
void setup() {
pinMode(urip, OUTPUT);
}
void loop() {
ldrValue1 = analogRead(ldr1);
ldrValue2 = analogRead(ldr2);
if (ldrValue1 > threshold || ldrValue2 > threshold) {
digitalWrite(urip, HIGH);
} else {
digitalWrite(urip, LOW);
}
delay(100);
}