void setup() {
// put your setup code here, to run once:
pinMode(8, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
//turn off LED
digitalWrite(8, LOW);
if (analogRead(A2) >= 511){
digitalWrite(8, HIGH);
}
}