 
 	// reset watchdog
 	wdt_reset();
+}
+
+void report_current() {
+	Serial.print("$ACS,");
+	Serial.print(acs0, 4);
+	Serial.print(',');
+	Serial.println(raw_acs0, DEC);
 }
 
 void report_battery() {

long b5;


// the setup routine runs once when you press reset:
void setup() {
	// disable watchdog, because of [8]

	// start acquisition (with double readings to avoid interferences [1])
	digitalWrite(LED_PIN, HIGH);

	// current sensor
	raw_acs0 = analogRead(A11);		// J5 (pin 2)
	raw_acs0 = analogRead(A11);		// J5 (pin 2)

	// calculate output is Amps
	acs0 = (float) (ACS_ZERO - raw_acs0) * ACS714_CONV;

	// send current report
	report_current();


	// acquisition loop delta
	delta = millis() - time_iq;

