Fix bug in analog read pin