Can upload but sketch doesn't run

you need to call Serial.begin() before the first Serial.print()