int SENSOR = A0;
int LED = 3;
int VALOR;
void setup() {
// put your setup code here, to run once:
pinMode(LED, OUTPUT);
//pinMode(SENSOR, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
VALOR =analogRead(SENSOR);
if (VALOR < 200){
digitalWrite(LED, HIGH);
delay(1000);
}
digitalWrite(LED,LOW);
Serial.println(VALOR);
}