void setup() {
// put your setup code here, to run once:
pinMode(8, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(8,LOW);
if(analogRead(A0>=1000)){
digitalWrite(8, HIGH);
}
delay (400);
}
void setup() {
// put your setup code here, to run once:
pinMode(8, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(8,LOW);
if(analogRead(A0>=1000)){
digitalWrite(8, HIGH);
}
delay (400);
}