int nr=1; char buf[10]; void setup(){ Serial.begin(9600); pinMode(13, OUTPUT); } void loop(){ digitalWrite(13, HIGH); delay(2000); digitalWrite(13, LOW); delay(1000); nr++; sprintf(buf, "Test nr %d\n", nr); Serial.write(buf); }