SMS comparison problem

    char SmS [3];
    const char Command [3] = "ON";
    
   for(int i = 0;i<3;i++)
   {
      SmS[i] = sms.read();
   }
   if ( SmS == Command)
   {
    Serial.println("\nOutput now ON");
   }

ive used now char arrays and direct comparison but the if case still doesnt get true :frowning: