How to convert a String o another Hex String

Serial.print(x, HEX);  // print as an ASCII-encoded hexadecimal