Hi Ray,
I shortly checked your code and unfortunately I do not see any obvious issue there.
The code should measure voltage at HS1 pin (pin49) divided by 6.
I didn’t test it till now.
Which voltage did you connect to HS1 pin?
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------