Check for bad input from arduino