#include <Servo.h>
Servo okservo;
Servo oksservo;
int servopin = 9;
int servopin1 = 6;
int ldr = A0;
int ldr1 = A0;
void setup() {
// put your setup code here, to run once:
okservo.attach(servopin);
oksservo.attach(servopin1);
pinMode (ldr, INPUT);
pinMode (ldr1, INPUT);
Serial.begin (9600);
}
void loop() {
// put your main code here, to run repeatedly:
int ldrstatus = analogRead(ldr);
int ldrstatus1 = analogRead(ldr1);
if (ldrstatus>300) {
okservo.write(90);
oksservo.write(90);
Serial.print ("demasiado brillante");
Serial.println (ldrstatus);
}
else
}