Author Options:

LM35 thermometer? Answered

i want to make a theromoter with pic16f88 and LM35 sensor and show the results on a 16x2 lcd plzzz 
help me out

3 Replies

Bot1398Best Answer (author)2012-01-30

I think you got a arduino by seeing your instructables :p heres is the code for the arduino:
int sensorpin = 0;
int sensorval = 0;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup(){

void loop() {
sensorval = analogRead(sensorpin);

float voltage = sensorval * 5.0;
voltage/= 1024.0;

float temperatureC = (voltage - 0.5) * 100 ;


Select as Best AnswerUndo Best Answer

seandogue (author)2011-08-08

The LM35 is quite simple to use. As I recall it produces a 10mV per degree (C I think) output, so all you need is a voltage source to power it. The source is flexible, fro somewhere in the range of 5-30VDC. Type "LM35 into google and you'll quickly find the pinout and detailed specs. I'm going on memory..

Select as Best AnswerUndo Best Answer