Error handling. If there are errors red led blinks. Number of blinks gives the error code