Wrong Data Sending

selimerkan, either that isn't your code, or you haven't actually run it, as it will not compile. Specifically, you are missing a right curly brace at the end of loop(). When you post code, you should first get it to compile, then use CTRL+t to format it, then copy it from the IDE (CTRL+a, CTRL+c), then paste it here between code tags.

Adding the missing curly brace allows it to compile.

Now, did you edit the code in the code you posted? I ask because it does print the output (though probably not in the way you wanted to).

It gives me:

Data=
397

If you did change your code, it's not really a good idea to modify it in the code you first posted, because folks who are trying to help think that code is the code you had a problem with.