Arduino While Loop Two Conditions For Total Internal Reflection