Electron reading digital pin state help request (novice)

We do like properly formatted and indented code :wink:
Have a look at

Also your curly braces don't match up (which would be easier to see with proper indentaion).

And please don't over-use goto. This is C++ not Basic.

2 Likes