sensor data hangs when going through if/then statements

great. do you have an example of this aside from the arduino example? I'm not understanding how they use it really.