OK, but while you are at it learn to write separate functions, not cram everything into the loop function. Once you do that finding problems becomes a whole lot easier. Consider this problem, if you had a function to read the sensor and another one to display the data then a few carefully placed // would disable all your other code and enable you to find the problem.
The only things in the loop function should be calls to other functions.