Need help with code -serial

Should just be greater than, because in his code, if it's 5, it goes to 6. In your example, it would be set to 0

Right you are! Thanks for catching that.