   String output = "";
   char buff[10];
   
-  String outputWattString = dtostrf(outputWatt, 0, 3, buff);
+  String outputWattString = dtostrf(powerValuesAverage, 0, 3, buff);
   output += outputWattString;
   output += " ";
 

#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

#define POLL_RATE 200
#define SCREEN_RESET_PIN 4 //Digital 4
#define DISPLAY_CONTRAST true

Adafruit_INA219 ina219;
Adafruit_SSD1306 display(SCREEN_RESET_PIN);


void setup(void) 
{

  display.setCursor(0,0);  


  powerValuesTotal = powerValuesTotal - powerValues[powerValuesIndex];         
  powerValues[powerValuesIndex] = outputWattRaw;
  powerValuesTotal = powerValuesTotal + powerValues[powerValuesIndex];       
  powerValuesIndex++;                    

  // if we're at the end of the array...
  if (powerValuesIndex >= PAST_POWER_TO_AVERAGE) {
    powerValuesIndex = 0;                           
  }

  powerValuesAverage = powerValuesTotal / PAST_POWER_TO_AVERAGE;         




  display.print("Out Power:   ");
  display.print(powerValuesAverage, 3);
  display.println("W");
  
  display.println();
