Arduino If Else Example Code Plotting