sensor data hangs when going through if/then statements

Your fade functions have 1.5 seconds worth of delays in them.