Fixes #27 and #28 by correctly reading analog data and calling proper conversion function