I am trying to use serial.println() on my Arduino Uno using the Arduino IDE with some difficulty. I am inputting numbers using the serial monitor, but it is not outputting the correct numbers.
Arduino code:
int a= Serial.read();
Serial.println(a);
The Arduino website says I should be getting the following outputs:
Serial.print(78) gives "78"
Serial.print(1.23456) gives "1.23"
Serial.print('N') gives "N"
Serial.print("Hello world.") gives "Hello world."
However, when I input the following, I get:
Serial.print(78) gives "78"
55
Serial.print(1.23456) gives "1.23"
10
49
50
52
54
Serial.print('N') gives "N"
39
Serial.print("Hello world.") gives "Hello world."
39
34
Can you tell me what the problem is, and how to fix it?