I don't see any use of Serial.print() with valx and valy in your code.
Please explain exactly what you mean by "it hasn't worked thus far".
I don't see any use of Serial.print() with valx and valy in your code.
Please explain exactly what you mean by "it hasn't worked thus far".