Instead of showing the value, � symbol appears

This is my code and my issue. Instead of showing the value of the pottentiometer (A0), is showing this symbol �.



The cause may be an incorrect baudrate. What BT module?

The Bluetooth module is this one. The connection is well made because the symbols react when I spin the potentiometer, but the symbols still appear.

Check it using another application to receive data. For example Serial Bluetooth Terminal:

It keeps doing the same thing. I guess the problem is in the encoding of the Arduino program. But I don't know how to solve it

Try different values:

  • 19200
  • 38400

Here's an old factor from BBS days: Parity and Bits per byte.
Can those be set using AT commands to the UART?

I've changed the baudrate to 38400 and it worked. Thanks a lot.