You might also think about something like
if ((millis() & 0x1ff) == 0) {
Serial.println(data);
}
That should print something about every half a second...
You might also think about something like
if ((millis() & 0x1ff) == 0) {
Serial.println(data);
}
That should print something about every half a second...