+int sensor1 = 0;
+int sensor2 = 0;
+int button = 0;
+
+
+
 void setup() {
     pinMode(9, OUTPUT);
     Serial.begin(9600);

void serialEvent() {
    while (Serial.available()) {
        char inChar = (char)Serial.read();
        if (inChar == '0') {
            digitalWrite(9, HIGH);
        } else if ( inChar == '1') {
            digitalWrite(9, LOW);
        }
    }


// the loop routine runs over and over again forever:
void loop() {
    sensor1 = analogRead(A0);
    sensor2 = analogRead(A1);
    button = digitalRead(A2);

    Serial.print("[");
    Serial.print(sensor1);
    Serial.print(", ");
    Serial.print(sensor2);
    Serial.print(", ");
    Serial.print(button);
    Serial.println("]");
    delay(10);
}
