I'm trying to make a basic calculator with the Serial monitor but it doesn't seem to work.
int a;
int b;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
if (Serial.available()) {
Serial.println("First Number: ");
a = Serial.read();
Serial.println("Second Number: ");
b = Serial.read();
Serial.println(a + b);
}
}