const int buttonPin = 13;   
const int PIN = 15;    

//Variables
int buttonState = 0;

void setup() {
  pinMode(PIN, OUTPUT);      
  pinMode(buttonPin, INPUT);   
  Serial.begin(9600);
}


void loop(){
  //Read button state 
  buttonState = digitalRead(buttonPin);

  //If button pressed...
  if (buttonState == HIGH) { 
    digitalWrite(PIN, HIGH);  
  }
  else if (buttonState == LOW) { 
    digitalWrite(PIN, LOW);  
  }
  Serial.print("\nAnalog : ");
  Serial.print(buttonState);
}
FPS: 0
Power: 0.00W