SerialBT.print is printing Multiple times

#include <Arduino.h>
#include "BluetoothSerial.h"

BluetoothSerial SerialBT;

int btvalue;
int Relay[2] = {15, 2};
int Switch[2] ={13, 12};
bool switchstate[2]={0,0};
int Relay1on=10;
int Relay1off=1;
int Relay2on=20;
int Relay2off=2;


void checkSwitch()
{
    if (digitalRead(Switch[0]) == LOW){
      if (switchstate[0] == 0) 
     {
       digitalWrite(Relay[0], HIGH);
       switchstate[0] = 1;
       SerialBT.println(Relay1on);
       Serial.println(Relay1on);
       }
    }
   if (digitalRead(Switch[0]) == HIGH)
    {
      if (switchstate[0] == 1) 
     {
      digitalWrite(Relay[0], LOW);
      switchstate[0] = 0;
      SerialBT.println(Relay1off);
      Serial.println(Relay1off);
       
      }
    }
    if (digitalRead(Switch[1]) == LOW) 
    {
      if (switchstate[1] == 0) 
      {
       digitalWrite(Relay[1], HIGH);
      switchstate[1] = 1;
      SerialBT.println(Relay2on);
      Serial.println(Relay2on);
       }
    } 
   if (digitalRead(Switch[1]) == HIGH) 
    {
      if (switchstate[1] == 1) 
      {
       digitalWrite(Relay[1], LOW);
      switchstate[1] = 0;
      SerialBT.println(Relay2off);
      Serial.println(Relay2off);
       }
    }
 }

void checkBT()
{
  btvalue = SerialBT.parseInt();
  Serial.println(btvalue);
  switch (btvalue)
  {
  case 1:
    digitalWrite(Relay[0], LOW);
    break;
  case 10:
    digitalWrite(Relay[0], HIGH);
    break;
  case 2:
    digitalWrite(Relay[1], LOW);
    break;
  case 20:
    digitalWrite(Relay[1], HIGH);
    break;
  }
}

void setup() 
{
  Serial.begin(115200);
  btStart();  
  SerialBT.begin("esp32");
  Serial.println("Welcome");
  for(int i=0; i<2; i++)
  {
   pinMode(Switch[i], INPUT_PULLUP);
   pinMode(Relay[i], OUTPUT);
   digitalWrite(Relay[i], LOW);
   }
 }

void loop() 
{
  checkSwitch();
  if (SerialBT.available())
  {
    checkBT();
  }
}

Hi Everyone,
i trying to sync the status of physical switch to bluetooth app in android.
i m using ESP 32.
i connected the relays and switches
the program works fine. i can able to control it from android app as well as physical switches… but i want to the status of the switch in android app…
when the switch is turned on or off.
The serialBT.print should print only once. but what i get is it its printed multiple times …
i put the Serial.print to check what its printing…

when i turned the switch 1 on it should print “10” but its printing “10110110”

when i turn it on instead of printing “1” it prints “1101101101”
i don’t know what mistake i did… please help

i rectified it by myself....

You need to debounce the switches / buttons.