int i=analogRead(0); int j=analogRead(3);
pinMode(3,OUTPUT); digitalWrite(3, HIGH); ... pinMode(3,INPUT);
I would be glad if anyone can help me with this..I have connected a temperature sensor(LM35) to analog pin 1 and a potetiometer to analog pin 0. When the potentiometer reads zero on my serial monitor I have no problem with the LM35. But when i start varying the pot the LM35 values changes even when my room temperature is constant. when i bring back the pot to 0, it reads the correct values. What could be the problem??Thanks,SANJAY
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16