Modified arduino test sketch to take serial input