PaulS: to clarify, when i read the sensor data through the serial monitor, it freezes when the if statements are met. in addition, the numbers fluctuate from extremes from 34 to 5 to 1 to 17 (those are random numbers to clarify, just giving an example oh how much fluctuation there is). sorry for the confusion.