testing for Arduino's error codes