int ledpin = 10;
int vcc = 11;
int status;
void setup(){
pinMode(ledpin, OUTPUT);
pinMode(vcc, INPUT);
Serial.begin(9600);
}
void loop(){
status = digitalRead(vcc);
if(status == HIGH){
Serial.println("Gatchu!");
digitalWrite(ledpin, HIGH);
delay(1500);
digitalWrite(ledpin,LOW);
}
}