 }
 
 void printDec(uint32_t ui) {
-  mySerial.print(ui/10, DEC);
-  mySerial.print(".");
-  mySerial.print(ui%10, DEC);
+  Serial.print(ui/10, DEC);
+  Serial.print(".");
+  Serial.print(ui%10, DEC);
 }
 
 


    // Print measure 
    printDec(values[j]);
    mySerial.print("\t");

    // Print average 
    if (flag) printDec(average/NUMBER);
    mySerial.print("\n");

    j++; 
    if (j==NUMBER) flag=true;

  analogReference(INTERNAL1V5);
  analogRead(TEMPSENSOR); // first reading usually wrong

  Serial.begin(9600);
  pinMode(PUSH2, INPUT_PULLUP);   

  digitalWrite(RED_LED, HIGH); 
  digitalWrite(GREEN_LED, LOW); 


  Serial.print("\n\n\n*** MSP430 Thermometer \n"); 
  Serial.print("Press PUSH2 to end\n"); 
  Serial.print("instant\taverage\n");

  for (j=0; j<NUMBER; j++) values[j]=0;
  average = 0;
