12 to 24V input

You need to divide the voltage down to the 0..5V range, thats a factor of 5, not 2