I have a sketch uploaded on the Uno. It outputs data (Serial.write) and it works. But if I disconnect it from the computer and then connect it again (either right away or the day after), Serial monitor doesn't work.
I have to upload the same sketch again before I'm able to connect with serial monitor.
Can you upload a sketch at any time (without using the monitor)? If you can upload a sketch, that means the Serial connection is working and the monitor will work. Post your code that is giving this effect in code tags. Have you tried uploading a basic serial/debug sketch and seeing if the issue continues?
Uploaded, opened serial monitor, output as expected
Closed ide, opened ide and just left the bare minimum sketch there, opened serial monitor, output as expected
Unplugged and replugged Uno from usb, opened serial monitor, output as expected.
I know, strange right?
Must be something wrong with the Uno.
Tested with another Arduino and it worked as expected.
It was a Mega 2560 but anyway.
I'll get another Uno.