Arduino Pro Mini ATmega 328P: garbage output on serial console
Garbage values on output is mostly due to the baudrate.

Try changing the baudrate on the output terminal to the baudrate in the code.
Try checking the output by changing different baudrates on the terminal.

This must work for you :)