Simple, use the map() function:int tempF; int raw;raw = analogRead(pin#);tempF = map(raw, 0, 1023, 50, 100);This will only give you increments of full degrees, but you could do: tempF = map(raw, 0, 1023, 500, 1000);And then convert tempF to float and divide by 10.0 ? Or something like that. Lefty
Does this work for unlinear behaviour too?
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