Hi there, For any sensor outputting in the range 0 - 5V can be simply read by analog In pins by:
int sensorValue = analogRead(A0); float voltage = sensorValue * (5.0 / 1023.0);
But what if the sensor outputs in the range 0.25 to 4.5V or 1 - 5V?
Will it be better if sensor value is remapped for the given range? Or above mapping of 0-5V is just fine?