const int pSuhu = A0;
float suhu , data;
void setup() {
Serial.begin(9600);
Serial.println(pSuhu, INPUT);
}
void loop() {
data = analogRead(pSuhu);
suhu = data * 500 / 1024;
Serial.print("data: ");
Serial.print(data);
Serial.print(" , suhu: ");
Serial.print(suhu);
Serial.println();
delay(1000);
}