 #define CLK   32
 Adafruit_MAX31855 thermocouple(CLK, CS, DO);
 
-const int numReadings = 10.00;				// number of readings to be taken for temperature average
-int readings[numReadings];  				// the readings from the analog input
-int index = 0;              				// the index of the current reading
-int total = 0;              				// the running total
-int average = 0;            				// the average of temperature readings
-int oldaverage = 0;          				// the old average to overwrite on the scree
+const int numReadings = 10.00;				// number of readings to be taken for fuel temperature average
+int readings[numReadings];  				  // the readings from the analog input
+int index = 0;              				  // the index of the current reading
+int total = 0;              				  // the running total
+int average = 0;            				  // the average of temperature readings
+int oldaverage = 0;          				  // the old average to overwrite on the scree
 int temperaturePin = A11;			        // temperature input pin to read temperature of oil temperature
 int temp = 0;
 int EGT = 0;

  //degreesC = (voltage - 0.5) * 100.0;
  //degreesF = degreesC * (9.0/5.0) + 32.0;
  // subtract the last reading:
  total = total - readings[index];
  // read from the sensor:
  readings[index] = temp;
  // add the reading to the total:
  total = total + readings[index];
  // advance to the next position in the array:
  index = index + 1;
  // if we're at the end of the array...
  if (index >= numReadings)
    // ...wrap around to the beginning:
    index = 0;
  // calculate the average:
  average = total / numReadings;

fuelGage();

void setup()
{
  dayLightVal = analogRead(A10);
  backlightValue = 0.2138*dayLightVal + 20.5;
  analogWrite(backlightPin, backlightValue);

  Tft.TFTinit();                                        // init TFT library

  pinMode(24, OUTPUT);					                        // needed to set digital pin to high at 5v for switching MOSFET
  pinMode(26, OUTPUT);					                        // needed to set digital pin to high at 5v for switching MOSFET

  Serial.begin(9600);

  Tft.drawRectangle(10, 20, 220, 280, GREEN); 	        // (X-coord start, Y-coord start, X length, y length, color)
  Tft.drawString("OIL", 73, 38, 5, GREEN);
  Tft.drawString("OIL", 75, 40, 5, BLUE);
  delay(500);
