1to5v analog volt to 0 to 5v

I have a flow sensor with 1to 5V analog output. Flow sensor full scale range 10-1000 liters per min. How to change the actual flow output from 1 to 5v signal to arduino's 0 to 5V corresponding signal

Hi, You can use the "Map" statement. See:

https://www.arduino.cc/en/Reference/Map

You will be using the Arduino data whose range is 0..1023

terryking228:
Hi, You can use the "Map" statement. See:

map() - Arduino Reference

You will be using the Arduino data whose range is 0..1023

Thanks for your kind advice :slight_smile: