Add Serial.begin(115200); and Serial.println("Setup called"); to setup(). See if your Arduino is constantly resetting.