Need help transmitting analog values using esp now on esp32

I'm using the code from the site below:

He is pushing a button and is turning on an led in this example from a master esp32 to a slave esp32.

In my setup I have 4 photoresistors and I am trying to send the analog values (analogWrite) instead of a digitalRead in the array.
Right now I am getting blank outputs on both the master and slave side in my serial monitor.

Can someone point me in the right direction as to how I can transmit the analog values?
Thanks!

//Libs for espnow and wifi
#include <esp_now.h>
#include <WiFi.h>

//Channel used in the connection
#define CHANNEL 1

//top left sensor pin = PinTL
const int PinTL = 33; 
const int PinBL = 35;
const int PinTR = 32;
const int PinBRT = 34;

//Gpios that we are going to read (digitalRead) and send to the Slaves
//It's important that the Slave source code has this same array
//with the same gpios in the same order
uint8_t gpios[] = {PinTL,PinBL,PinTR,PinBRT};

//In the setup function we'll calculate the gpio count and put in this variable,
//so we don't need to change this variable everytime we change
//the gpios array total size, everything will be calculated automatically
//on setup function
int gpioCount;

//Slaves Mac Addresses that will receive data from the Master
//If you want to send data to all Slaves, use only the broadcast address {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}
//If you want to send data to specific Slaves, put their Mac Addresses separeted with comma (use WiFi.macAddress())
//to find out the Mac Address of the ESPs while in STATION MODE)
uint8_t macSlaves[][6] = {
  //To send to specific Slaves
  //{0x24, 0x0A, 0xC4, 0x0E, 0x3F, 0xD1}, {0x24, 0x0A, 0xC4, 0x0E, 0x4E, 0xC3}
  //Or to send to all Slaves
  {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}
};

void setup() {
  Serial.begin(115200);

  //Calculation of gpio array size:
  //sizeof(gpios) returns how many bytes "gpios" array points to.
  //Elements in this array are of type uint8_t.
  //sizeof(uint8_t) return how many bytes uint8_t type has.
  //Therefore if we want to know how many gpios there are,
  //we divide the total byte count of the array by how many bytes
  //each element has.
  gpioCount = sizeof(gpios)/sizeof(uint8_t);

  //Puts ESP in STATION MODE
  WiFi.mode(WIFI_STA);

  //Shows on the Serial Monitor the STATION MODE Mac Address of this ESP
  Serial.print("Mac Address in Station: "); 
  Serial.println(WiFi.macAddress());

  //Calls the function that will initialize the ESP-NOW protocol
  InitESPNow();

//Calculation of the size of the slaves array:
  //sizeof(macSlaves) returns how many bytes the macSlaves array points to.
  //Each Slave Mac Address is an array with 6 elements.
  //If each element is sizeof(uint8_t) bytes
  //then the total of slaves is the division of the total amount of bytes
  //by how many elements each MAc Address has
  //by how much bytes each element has.
  int slavesCount = sizeof(macSlaves)/6/sizeof(uint8_t);

  //For each Slave
  for(int i=0; i<slavesCount; i++){
  //We create a variable that will store the slave information
  esp_now_peer_info_t slave;
  //We inform the channel
  slave.channel = CHANNEL;
  //0 not to use encryption or 1 to use
  slave.encrypt = 0;
  //Copies the array address to the structure
  memcpy(slave.peer_addr, macSlaves[i], sizeof(macSlaves[i]));
  //Add the slave
  esp_now_add_peer(&slave);
}

  //Registers the callback that will give us feedback about the sent data
  //The function that will be executed is called OnDataSent
  esp_now_register_send_cb(OnDataSent);
  
  //For each gpio
   //For each GPIO pin in array
  for(int i=0; i<gpioCount; i++){
    //We put in read mode
    pinMode(gpios[i], INPUT);
  }
 
  //Calls the send function
  send();
}

void InitESPNow() {
  //If the initialization was successful
  if (esp_now_init() == ESP_OK) {
    Serial.println("ESPNow Init Success");
  }
  //If there was an error
  else {
    Serial.println("ESPNow Init Failed");
    ESP.restart();
  }
}

//Function that will read the gpios and send
//the read values to the others ESPs
void send(){
  //Array that will store the read values
  uint8_t values[gpioCount];

  //For each gpio
  for(int i=0; i<gpioCount; i++){

    //Reads the value (HIGH or LOW) of the gpio
    //and stores the value on the array
    values[i] = digitalRead(gpios[i]);
  }

  //In this example we are going to use the broadcast address {0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF}
  //to send the values to all Slaves.
  //If you want to send to a specific Slave, you have to put its Mac Address on macAddr.
  //If you want to send to more then one specific Slave you will need to create
  //a "for loop" and call esp_now_send for each mac address on the macSlaves array
  uint8_t macAddr[] = {0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF};
  esp_err_t result = esp_now_send(macAddr, (uint8_t*) &values, sizeof(values));
  Serial.print("Send Status: ");
  //If it was successful
  if (result == ESP_OK) {
    Serial.println("Success");
  }
  //if it failed
  else {
    Serial.println("Error");
  }
}

//Callback function that gives us feedback about the sent data
void OnDataSent(const uint8_t *mac_addr, esp_now_send_status_t status) {
  char macStr[18];
  //Copies the receiver Mac Address to a string
  snprintf(macStr, sizeof(macStr), "%02x:%02x:%02x:%02x:%02x:%02x",
           mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3], mac_addr[4], mac_addr[5]);
  //Prints it on Serial Monitor
  Serial.print("Sent to: "); 
  Serial.println(macStr);
  //Prints if it was successful or not
  Serial.print("Status: "); 
  Serial.println(status == ESP_NOW_SEND_SUCCESS ? "Success" : "Fail");
  //Sends again
  send();
}

//We don't do anything on the loop.
//Every time we receive feedback about the last sent data,
//we'll be calling the send function again,
//therefore the data is always being sent
void loop() {}

You need to study the language constructs more closely. analogWrite controls PWM, it's not a print statement for analog values. Analog values read from one of the ADC pins are simple integers and can be serially transmitted like any other integer. There are great tutorials here and here. Check them out.

I decided to use the example below since it looks more promising in terms of transmitting analog values from a master esp32 to a slave esp32.

I'm using this library example on git hub

ESPNow Master

ESPNow Slave

For the master code i'm trying to send these values in the void sendData() function, but they are not transmitting successfully to the slave side can you please advise?:

uint8_t data = 0;
// send data
void sendData() {
  //Sends analog values in this format: i.e. <380,148,224,260,45>
  Serial.print("<");
  Serial.print(TL);
  Serial.print(",");
  Serial.print(BL);
  Serial.print(",");
  Serial.print(TR);
  Serial.print(",");
  Serial.print(BRT);
  Serial.print(",");
  Serial.print(EA);
  Serial.print(">");
  Serial.println();

  data++;
  const uint8_t *peer_addr = slave.peer_addr;
  Serial.print("Sending: "); Serial.println(data);
  esp_err_t result = esp_now_send(peer_addr, &data, sizeof(data));
  Serial.print("Send Status: ");
  if (result == ESP_OK) {
    Serial.println("Success");
  } else if (result == ESP_ERR_ESPNOW_NOT_INIT) {
    // How did we get so far!!
    Serial.println("ESPNOW not Init.");
  } else if (result == ESP_ERR_ESPNOW_ARG) {
    Serial.println("Invalid Argument");
  } else if (result == ESP_ERR_ESPNOW_INTERNAL) {
    Serial.println("Internal Error");
  } else if (result == ESP_ERR_ESPNOW_NO_MEM) {
    Serial.println("ESP_ERR_ESPNOW_NO_MEM");
  } else if (result == ESP_ERR_ESPNOW_NOT_FOUND) {
    Serial.println("Peer not found.");
  } else {
    Serial.println("Not sure what happened");
  }
}

MASTER SERIAL RESULTS:

Found 12 devices 
Found a Slave.
1: Slave_1 [30:AE:A4:F3:14:95] (-49)
Slave Found, processing..
Slave Status: Already Paired
<49,59,97,91,-135>
Sending: 2
Send Status: Success
Last Packet Sent to: 30:ae:a4:f3:14:95
Last Packet Send Status: Delivery Success

SLAVE SERIAL RESULTS:

Last Packet Recv from: 30:ae:a4:ef:bf:1c
Last Packet Recv Data: 103