Problem with temperature sensor.


i connected temperature sensor lm 35 (centigrade scale) temperature sensor. connected pins correctly. when use following code getting value of 6 in serial port.is wrong sensor or code? .can 1 point out what's wrong.

code: [select]

int temppin = 0;
int temp;
void setup()
{
  serial.begin(9600);
}

void loop()
{
  temp = analogread(temppin)/10;
  serial.println(temp);
}
 

what temperature in room?


Arduino Forum > Using Arduino > Project Guidance > Problem with temperature sensor.


arduino

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial