Converting values of analog inputs