NAN value-problem

I make one project but instead of the measured SOP2 value, NAN appears on the display. I really don’t know why, where the problem comes from.
What needs to be changed in the code?
I really need help, please!
Link for the code:

3 posts were merged into an existing topic: NAN value a BIG problem