Hi,I checked your code by uploading it into my Arduino and the code seems to work pretty well. Can you describe your problem in detail; as simply saying "it doesn't work" explains noting about the problem.I think limiting the length of your 'buffer' array may be a part of the problem that you are facing. Also, try to replace