For example you have 4 Volts from your sensor, divided by 2 by the voltage divider.
2/2.56 = 0.78125 //proportion of maximum analog reading
0.78125*1024 = 800 //ideally analogRead = 800
800*0.005 = 4 Volts
For example you have 4 Volts from your sensor, divided by 2 by the voltage divider.
2/2.56 = 0.78125 //proportion of maximum analog reading
0.78125*1024 = 800 //ideally analogRead = 800
800*0.005 = 4 Volts