// Transmitter int Button1 = 13; void setup() { // put your setup code here, to run once: Serial.begin(9600); // for communication pinMode(13, INPUT_PULLUP); // for read button } void loop() { // put your main code here, to run repeatedly: if(digitalRead(13) == 0) { Serial.write('1'); } delay(20); // waitting message send }