void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(A0, INPUT);
pinMode(10, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int value = analogRead(A0);
Serial.println(value);
delay(200);
digitalWrite(10, LOW);
if (analogRead(A0) >= 1000) {
digitalWrite(10, HIGH);
}
delay(300);
}