ESP32 - "Hello, World!" outputting gibberish

This is my first time playing around with an ESP32 (WROOM-32E).

I tried making a relatively straightforward “Hello, World!” program, which displays the message every 3 seconds, along with a little twist of outputting the number “3!” every 9 or 10 iterations.

Here’s code:

But the output gives a lot of gibberish:

8�G␄␁��7g!
j!�n��(�!���␜�o����␜�␜�l���␜���␎␜�␜�9��l�|�l␜␎���9o���␜�␎h␑B�␘�1!��H6��ѥ!��|�l␜␜����␜���l���8

Any idea why?

Set the corect baudrate in the platformio.ini:

monitor_speed = 115200

Thanks, that worked!