But if i use it like this
Quote:But if i use it like thisNot sure what 'this' is. You need a connection between +5V, ground and the arduino input. It sounds like you connected them wrong at first. This could explain why it is not working right.
Sensor -- Arduino+Vs -- GNDGND -- 5V
Quote:No that's not right. Are you sure you are identifying the pins correctly?.
Try using:-temperature = (5.0 * val * 100.0)/1024.0;Where val is what you read and temperature is a float.
temperature = ( 5.0 * analogRead(0) * 100.0) / 1024.0;
Is there any way to check that?
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