probleme de code de deux potentiometres

bonsoir svp qui peut m'aider
code de transmetteur

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();
void setup() 
{
  mySwitch.enableTransmit(10);

}


void loop() {
  
 int sensorValue = analogRead(A0);
delay(10);
 mySwitch.send(sensorValue , 12);
 
 int sensor1Value = analogRead(A1);
 mySwitch.send(sensor1Value , 12);
 delay(90);  
}

code de recepteur

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();
RCSwitch mySwitch1 = RCSwitch();
void setup() {{
  Serial.begin(9600);
  mySwitch.enableReceive(0);  // Receiver on interrupt 0 => that is pin #2
}
Serial.begin(9600);
mySwitch.enableReceive(1);}
void loop() {
  {
  if (mySwitch.available()) {
    
    int value = mySwitch.getReceivedValue();
    
    if (value == 0) {
      Serial.print("Unknown encoding");
    } else {
      Serial.print("Pot1 ");
      Serial.println( mySwitch.getReceivedValue() );
      
    }

    mySwitch.resetAvailable();
  }{
    if (mySwitch1.available()) {
    
    int value = mySwitch1.getReceivedValue();
    
    if (value == 0) {
      Serial.print("Unknown encoding");
    } else {
      Serial.print("Pot2 ");
      Serial.println( mySwitch1.getReceivedValue() );}
          mySwitch1.resetAvailable();

    }
}
}}

merci

Aider à quoi?

Jambe:
Aider à quoi?

le code est incorrecte
le pot1 affiche la valeur de pot 2 est vise versa quelle est la modification a faire pour pot1 affiche la valeur de potentiomètre 1 et pot2 affiche la valeur de potentiometre 2

Pose-toi la question "comment le récepteur peut-il savoir qu'il vient de recevoir pot1 ou pot2?"

avec le module 433mhz

fdufnews:
Pose-toi la question "comment le récepteur peut-il savoir qu'il vient de recevoir pot1 ou pot2?"

comment?? comment le coder ??

Vu du récepteur, qu'est-ce qui différencie pot1 de pot2?
Quel moyen as-tu mis en place pour que le récepteur sache quelle valeur il va recevoir?

mySwitch et mySwitch1

je ne sais pas comment le recepteur connait la valeur des deux potentiomètres tu peux m'aider :frowning: