How would i write the slave code for this?

I am trying to write the slave code for this code. I am just confused how to send each value down the I2C line and how to get each value to be displayed seperately. Would i have to convert the array back into a float when converted? I have tried making a code for the master but its completely wrong.

MASTER

#include <Wire.h>
String val1;
String val2;
String val3;
String val4;
//IR Sensors
float refvoltage = 5.0;
int sensor1 = 0; // Left most sensor
int sensor2 = 1;
int sensor3 = 2;
int sensor4 = 3;
int sensor5 = 6;
int sensor6 = 7;

// Initial Values of Sensors
int sensor[6] = {0, 0, 0, 0, 0, 0};

// PID Constants
float Kp = 25;
float Ki = 0;
float Kd = 15;

float error = 0, P = 0, I = 0, D = 0, PID_value = 0;
float previous_error = 0, previous_I = 0;

int flag = 0;

void setup() {
pinMode(sensor1, INPUT);
pinMode(sensor2, INPUT);
pinMode(sensor3, INPUT);
pinMode(sensor4, INPUT);
pinMode(sensor5, INPUT);
pinMode(sensor6, INPUT);

Serial.begin(9600); //setting serial monitor at a default baund rate of 9600
delay(500);

}

void loop() {

Wire.beginTransmission(0x08);
read_sensor_values();
Wire.write(val1[4]);
Serial.println(val1[4]);
Wire.write(val2[4]);
Wire.write(val3[4]);
Wire.write(val4[4]);
//Wire.write(sensor[4]);
//Wire.write(sensor[5]);
//Wire.write(sensor[6]);
Wire.endTransmission();

}

void read_sensor_values()
{ 
int x = analogRead(sensor1);
float s = (x / 1023.0) * refvoltage; 
val1 = String(s, 4);
//Serial.println(val1);

int x1 = analogRead(sensor2);
float t = (x1 / 1023.0) * refvoltage; 
val2 = String(t, 4);
//Serial.println(val2);

int x3 = analogRead(sensor3);
float u = (x3 / 1023.0) * refvoltage; 
val3 = String(u, 4);
//Serial.println(val3);

int x4 = analogRead(sensor4);
float v = (x4 / 1023.0) * refvoltage; 
val4 = String(v, 4);
//Serial.println(val4);

SLAVE

#include <Wire.h>
#define SLAVE_ADDRESS 0X08
String q;
float s;
// name the motor control pins
#define PWMa 7
#define PWMb 5
#define PWMc 8
#define PWMd 6

void setup() {
// configure the motor control pins as outputs
pinMode(PWMa, OUTPUT);
pinMode(PWMb, OUTPUT);
pinMode(PWMc, OUTPUT);
pinMode(PWMd, OUTPUT);

Wire.begin(SLAVE_ADDRESS);
Wire.onReceive(receiveEvent);
//Wire.onRequest(requestEvent);
Serial.begin(9600);

}

void loop() {}
void receiveEvent(){

q = "";
while(Wire.available()){
char c = Wire.read();

q += c;
q = s;
}
Serial.println(s);

}

Thanks in advance

Just show the minimum codes that you would have to send 2.75 from Master-UNO to Slave-UNO/NANO/MEGA using I2C Bus. It is guaranteed that you will receive help to get your codes corrected if not working.