Issues with using serial.avaliable to start a loop

Post the code that you tried