Problem: UDP Wraped with If Statement

the muxShield.digitalReadMS() returns 0's and 1's. It returns 0 when an object is detected by the sensor and returns 1 if there's nothing detected. The reason why I created three different arrays is because I have three different rows on my muxShield which increases the number of my digital inputs. Paul, I'm a beginner programmer so that was the only way that came into my mind.

The output may be 0 or 1, but to test that the output is 1, you don't need to compare against an array that you set, on every pass, to 1.

The arrays do not have to be ints. The values that you are storing in the array are byte sized, so a byte array would be more appropriate IF THEY WERE NEEDED.

Ok so I added Serial.print() to each line in the UDP code block. The first two are executed but the Udp.endPacket(); is NOT executed!

Is not executed? Or never returns? Big difference.

The MUX shield has an LED on pin 13. Is that LED lighting up? Pin 13 is one of the SPI pins that the Ethernet shield uses.