added analog-read functionallity