 
 // return thermister temperature in °C
 inline float readTemperature(int pin) {
-  return analogRead(pin) * 0.3223 - 50.0;
+  float read_sum = 0.;
+  for(i=0;i<10;i++) {
+    read_sum += analogRead(pin) * 0.3223 - 50.0
+  }
+  return read_sum / 10;
 }
 
 void parseCommand(void) {

  dispatchCommand();
  checkAlarm();
  updateStatus();
}
      1.4.2 fix bug with X command
      1.4.3 required Arduino IDE Version >= 1.0.0
      1.5.0 remove webusb
      1.6.0 average 10 temperature measurements to reduce noise
*/

#include "Arduino.h"
