question: public void registerSensor ( Sensor s , int i ) { if ( ( i < 0 ) || ( i > ( inputBytes [ nodeType ] * 8 - 1 ) ) || ( i > MAXSENSORS ) ) { log . error ( "Unexpected sensor ordinal in registerSensor: " + Integer . toString ( i + 1 ) ) ; return ; } hasActiveSensors = true ; if ( sensorArray [ i ] == null ) { sensorArray [ i ] = s ; if ( lastUsedSensor < i ) { lastUsedSensor = i ; } } else { log . warn ( "multiple registration of same sensor: CS" + Integer . toString ( ( getNodeAddress ( ) * SerialSensorManager . SENSORSPERNODE ) + i + 1 ) ) ; } }
target:  The numbers here are 0 to MAXSENSORS, not 1 to MAXSENSORS.