So I have to change the value of dist inside of the while loop, or should I use the if() function instead to determine to use the value of dist, or would that result in the same way?
edit: I just switched them to if() statements and Im getting a reading on the serial monitor now