Trying to open Images with jSon Object shows unreliable behavior

If you send it only once, that could be the issue. Maybe I do not have all the information. This is what you could do. Disable all the print statements in your code. Node add the following modification:

println(millis()+" ms reports XF like " + btnXForward +" boolean: " +  ( btnXForward.equals("1") ));
if ((btnXForward.equals("1")) == true || (btnXDownward.equals("1"))== true) {
   image(imgGreen, 1030, 665);
} else {
   image(imgRed, 1030, 665);
}

If you run this, do you see only XF set to 1 only once? Can you paste your output here just few seconds of data.

Kf