int mycount = 0;
int mypot = 0;
int analogpin=A0;
const float BETA = 3950;
int analogValue;
float celsius;
void setup()
{
pinMode(12, OUTPUT);
//pinMode(A4, INPUT);
Serial.begin(9600);
}
void loop() {
analogValue = analogRead(A1);
celsius = 1 / (log(1 / (1023. / analogValue - 1)) / BETA + 1.0 / 298.15) - 273.15;
mycount++;
Serial.print("Hello Computer decimal = ");
Serial.print(mycount);
Serial.print(" hex = ");
Serial.println(mycount,HEX) ;
mypot=analogRead(A0);
Serial.println(mypot);
Serial.print("Temperature: ");
Serial.print(celsius);
Serial.println(" ℃");
digitalWrite(12, HIGH); // sets the digital pin 13 on
delay( 1000); // waits for a second
digitalWrite(12, LOW); // sets the digital pin 13 off
delay(1000); // waits for a second// put your main code here, to run repeatedly:
}