Communication de HC-05

J'ai créer dans chacun de mes programmes un port série qui s'appelle bluetooth.
J'ai essayé d'envoyer ma valeur grâce aux commandes bluetooth.write() et bluetooth.print() (car j'ai vu que parfois bluetooth.write() pouvait causer des problèmes) mais je reçoit toujours la même valeur : -1.
Et je ne comprend pas où est le problème...

//MASTER
#include <SoftwareSerial.h>

SoftwareSerial bluetooth(5, 6); // RX, TX
int pot = A0; 

void setup() {
  Serial.begin(38400);
  bluetooth.begin(38400);
  }

void loop() { // run over and over
    int val = analogRead(pot)/4;
    bluetooth.print(val);
    
    delay(20);
}
//SLAVE
#include <SoftwareSerial.h>
SoftwareSerial bluetooth(5, 6); // RX, TX
const int potentiom = 0;

void setup ()
{
  
  Serial.begin(38400); 
  bluetooth.begin(38400);
}
void loop(){
  Serial.println(bluetooth.read());
  delay(10);
}

Merci de prendre du temps pour m'aider :slight_smile: