Converting analog to digital

I will try both of these solutions. Thank you!