Comparar array en condiconal if

Agrega esto

       if (horas[i] == H) { // INTENTO SIMPLIFICAR ESTO (12 HORAS)
            digitalWrite(lumin, HIGH);
            Serial.print("apagado"); // APAGADO
            break;
        }