I certainly dont want this done for me as i wont learn that way.
For the second one, have a look at the map() command.
void loop()
{
int val = analogRead(0);
val = map(val, 0, 5, -40, 125);
}
From what i understand of the map function AnalogRead(0) is input A0 (sensor input)
and im telling it that the values it should expect is between 0 and 5V but i would like it displayed as -40 to 125
Will the LCD stage be where i assign what units it is in? Im used to using siemens plcs but this is very different in terms of language.
could i not do another map function for the percentage but 0-100 as the new low high?