void setup() {
// put your setup code here, to run once:
pinMode(7, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
//switch off LED
digitalWrite(7, LOW);
//set LED's to on when moved around.
if (analogRead(A0) >= 1000) {
digitalWrite(7,HIGH);
}
delay(400);
}