uint8_t sensorBuf[24];

sensorBuf[] ist nicht groß genug für leds = sensorBuf[26];