const int Pin1 = 0; 
const int Pin2 = 1; 
const int Pin3 = 4; 

void setup() {
pinMode(Pin3, INPUT);
digitalWrite(Pin3, HIGH);
Serial.begin(9600);
}

void loop() {
Serial.print("x-axis tilt: ");
Serial.println(analogRead(Pin1));
Serial.print("y-axis tilt: ");
Serial.println(analogRead(Pin2));
Serial.print("switch: ");
Serial.println(digitalRead(Pin3));
delay(500);
}