Added error checking for reading serial data

Now ignores serial inputs that don't match the exact format of the
expected string and added a 250ms timeout for reading data