Weird Analog Temperature Sensor Output

Hello,

I am trying to create a mini thermometer system.
I am using a SunFounder Analog Temperature Sensor.

This is my code:

void setup() {
  // put your setup code here, to run once:
  pinMode(2, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:

  int temp = analogRead(A0);

  Serial.write("\nNew Reading:\n");
  Serial.write(temp);

  delay(100);
}

When I open the Serial Monitor, I get this output:
image

I know that I haven't converted the voltage into a temperature yet but shouldn't I see numbers?

Thanks

Did you mean "Serial.print(temp);"?

Hello
Take a view here.

Thank you so much!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.