scusate ma da questo come ne esce?
while ( true ) {
sensorValue = analogRead(A8); // read the analog in value:
inputStats.input(sensorValue); // log to Stats function
if ((unsigned long)(millis() - previousMillis) >= printPeriod) {
previousMillis = millis(); // update time
// display current values to the screen
Serial.print( "\n" );
// output sigma or variation values associated with the inputValue itsel
Serial.print( "\tsigma: " ); Serial.print( inputStats.sigma() );
// convert signal sigma value to current in amps
current_amps = intercept + slope * inputStats.sigma();
Serial.print( "\tamps: " ); Serial.print( current_amps );
Pot = (current_amps * 235);
Serial.print( "Watt="); Serial.print(Pot);
}
}