Problems with ESP-01 transmitter to Arduino receiver using RCSwitch library

Good day all.
I’m trying to make an IoT device with ESP8266-01 connected to an RF transmitter to send data to arduino with RCSwitch library.
I have gotten the ESP-01 to send data through GPIO 2 and i confirmed its transmitting something with an led connected to the data pin of my transmitter. But strangely, the receiver data pin with i connected to arduino pin 7 is always “high” and the serial monitor shows nothing being received.
Please can someone tell me what I’ve done wrongly and how I can get it working. Thanks. My code is below.

The ESP-01 transmitter code

#include <ESP8266WiFi.h>
#include <WiFiClient.h> 
#include <ESP8266WebServer.h>
#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

/* Set these to your desired credentials. */
const char *ssid = "My_Home";
const char *password = "password";
long code = 0;
String response_data = "";

ESP8266WebServer server(80);

/* Just a little test message.  Go to in a web browser
 * connected to this access point to see it.
void root() 
  send_response("<h1>Welcome Home</h1>");

void check_connection()

void entrance_light_ON()
  response_data = "<h1>101</h1>";
  code = response_data.substring(4,7).toInt();

void setup() 

  //setup transmitter
  mySwitch.enableTransmit(2);   //transmit through GPIO 2
	Serial.print("Configuring access point...\n");
	/* You can remove the password parameter if you want the AP to be open. */
	WiFi.softAP(ssid, password);

	IPAddress myIP = WiFi.softAPIP();
	Serial.print("AP IP address: ");
	server.on("/", root);

  //ON commands

	Serial.println("HTTP server started");

void loop() 

The Receiver Code

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {

void loop() {
  if (mySwitch.available()) {
    Serial.print("Received ");
    Serial.print( mySwitch.getReceivedValue() );
    Serial.print(" / ");
    Serial.print( mySwitch.getReceivedBitlength() );
    Serial.print("bit ");
    Serial.print("Protocol: ");
    Serial.println( mySwitch.getReceivedProtocol() );

  mySwitch.enableReceive(7);  // Receiver on interrupt 0 => that is pin #2

Which pin is the receiver actually attached to ?

Its attached to arduino pin 7

JVT: Its attached to arduino pin 7

So is the comment relevant and is pin 7 interrupt 0 ?

Honestly, I’m new to working with ESP and RF modules. I really don’t understand the Interrupt 0. I just connected my receiver’s data pin to arduino pin 7. Please do you think my transmitter code really works. I really do appreciate your responses. Thanks a lot.