Re: unable to read digital input value on processing

It's likely not the code.

We have not seen how you have the button connected to the Arduino, so we can't offer any advice.