Just a loose connection. Here's part of the output that extends the test program to show the next 4 readings following the one that detects a change in the position; based on the table of values. Each reading occurs every 100 ms.
Again, the test program is in the attachments.