Are you actually updating sensorValues by calling the appropriate Pololu library function at some point in your while loop? You didn’t post enough code for me to tell. Please read this post for tips on how to ask for help:
Also, please tell us what Pololu products you have and what type of device this code is running on.