Wireless Doorbell mod

Here is a picture of the IC and the pin that sits at 0v untill the transmitter is pressed. im hoping this change can replace the function of a regular switch. this is the code i've uploaded to the arduino.
D0 of the IC is running into pin2 of the arduino

/*********************************
**Wire:
*Pin10 - player TX;
*Pin11 - player RX;
*pin12 - player BUSY
**********************************/
#include <SoftwareSerial.h>
#include <DFPlayer_Mini_Mp3.h>

SoftwareSerial mySerial(10, 11); // RX, TX
int inPin = 2;
int val = LOW;
int play_state = HIGH;
long lastDebounceTime = 0;
long debounceDelay = 500;

void setup () {
pinMode(inPin, INPUT);
pinMode(13, OUTPUT);
Serial.begin (9600);
mySerial.begin (9600);
mp3_set_serial (mySerial); //set softwareSerial for DFPlayer-mini mp3 module
delay(1); // delay 1ms to set volume
mp3_set_volume (30); // value 0~30
}
void loop () {
val = digitalRead(inPin);
play_state = digitalRead(12);// connect Pin12 to BUSY pin of player
if ( ((millis() - lastDebounceTime) > debounceDelay) && (val == HIGH) && (play_state == HIGH)) {
lastDebounceTime = millis();
mp3_play (1);
//zz = ++zz;
//if (zz > 3) { zz = 1; }
digitalWrite(13, HIGH);
}

else if ( (val == HIGH) && (play_state == LOW) ) {

lastDebounceTime = millis(); //set the current time
digitalWrite(13, LOW);
delay(1000);
digitalWrite(13, HIGH);
delay(1000);
//mp3_next ();
}
}

CIR2272GM-pinout-datasheet.gif