Dynamically uploading sketch

Hello guys,

I am relatively new to the Arduino IDE. I was wondering if there is any way I could upload a sketch to the Arduino board dynamically based on the serial input it receives?

What do you mean by that?

The firmware you upload doesn't change (until you program it again).

You can, however, write your code in such a way that it behaves differently, depending on the Serial input it receives.