void
loop() {
for(int
i = 0;i<=7;i++){
\xA0\xA0\xA0 int current_state = analogRead(pin);
\xA0\xA0\xA0 Serial.println(current_state);
\xA0\xA0\xA0 samples[i] = ( 5.0 * current_state *
100.0) / 1024.0;
/* \xE3\xE9\xE1
\xF4\xEF\xED lm35 Temp in \xB0C = (Vout \xF3\xE5 mV) / 10
mV = millivolts*/
\xA0\xA0\xA0 tempc = tempc + samples[i];
\xA0\xA0\xA0 delay(1000);\xA0 }
tempc
= tempc/8.0;
tempf
= (tempc * 9)/ 5 + 32; // \xF4\xE9\xEC\xDE \xF3\xE5 fahrenheit
Serial.print(tempc,DEC);
Serial.print("
Celsius, ");
Serial.print(tempf,DEC);
Serial.print("
fahrenheit -> ");
tempc
= 0;
delay(1000);
} \xA0// delay before loop