int a= 65; // Your integer value to send
void setup() {
Serial.begin(9600); // Set receive buffer size to 128 bytes
}
void loop(){
int myInteger = 500; // Example integer value
char charArray[6]; // Create an array to hold the characters (long enough for your integer)
// Convert the integer to a string
sprintf(charArray, "int=%d", myInteger);
// Send the character array
Serial.write(charArray, strlen(charArray));
delay(1000); // Delay for 1 second (adjust as needed)
}