Post to Twitter?

Also, your Processing code is writing a string whilst your Arduino code is reading an int. You'll only read the first byte of your string which is fine so long as you're hit counter never gets to ten :slight_smile:

Maybe you need to ask yourself whether or not the Arduino is going to handle the actual value or just the web-site hit event.

If it's the former you need to find some way of passing large integer values (it's a popular site right?) or multi-character strings. Check out the various sections in the Palyground.

If it's the latter you can do all the hit-counting stuff in Processing and send only a "tick" event from Processing to Arduino - any input arriving at the Arduino over the serial line would count as an event, regardless of the content.