Arduino While Loop Example Code For Raspberry