Sketch starts only after opening the serial monitor