   Serial.print(",");
   Serial.print(REVISION);
   Serial.print(",");
-  Serial.print(VFinal,3);
-  Serial.print(",");
-  Serial.print(IFinal,3);
-  Serial.print(",");
-  Serial.print(VFinal * IFinal,3);
+  Serial.print(VFinal / 1000.0, 3);
+  Serial.print(",");
+  Serial.print(IFinal / 1000.0, 3);
+  Serial.print(",");
+  Serial.print(VFinal * IFinal / 1000.0, 3);
   Serial.print(",");
   Serial.print(digitalRead(RELAYPIN));
   Serial.print(",");

long delta = 0;

// Last computed values
float VFinal = 0.0;
float IFinal = 0.0;

// magic string
const char MAGIC[] = "Energino";

  Serial.print("\n");  
}

long scaleVoltage(float value) {
  long v_out = value * 5000 / 1024;
  long output = (v_out * float(settings.r1 + settings.r2)) / settings.r2;
  return (output > 0) ? output : 0;
}

long scaleCurrent(float value) {
  long v_out = value * 5000 / 1024;
  long output = (float(v_out - settings.offset) / settings.sensitivity) * 1000.0;
  return (output > 0) ? output : 0;
}

void resetSleep(long value) {
