Multiplexer

How can i autatically get the length of the array?

byte sensorRead[2] = {12,11};
byte antallSensorer = sizeof (sensorRead) / sizeof (sensorRead [0]);

(actually, in this case you can simply get away with

byte antallSensorer = sizeof (sensorRead);

since sizeof (byte) == 1)