 ColorValue current_color;
 ColorValue new_color;
 ColorName next_color;
-byte voltageBins[AVERAGE_BINS] = {127};
+int voltageBins[AVERAGE_BINS] = {0};
 int currentVoltageBin = -1;
-int voltageEpsilon;
 TemperatureRecord high_temp = {0.0, 0};
 TemperatureRecord low_temp = {999.9, 0};
 

  {
    bigsum += voltageBins[i];
  }

  // re-add our voltageEpsilon across all slots
  bigsum += voltageEpsilon << AVERAGE_BINS_BITS;

  // Compute the average, scaled from ADC value to temperature.
  *averageval  = (float)(bigsum >> AVERAGE_BINS_BITS);

  if (currentVoltageBin < 0)
  {
    // special case: first time through.
    currentVoltageBin = 0;
    for (int i = 0; i < AVERAGE_BINS; i++)
    {
      voltageBins[i] = readval;
    }
    #ifdef DEBUG
      Serial.print("getTemperature: voltageBins initialized to ");
      Serial.println(readval);
    #endif
  } else {
    voltageBins[currentVoltageBin] = readval;
  }

  // increment the current bin, but wrap if we're at the end
