Trouble talking to my RF receiver

Hi Im putting together a project where I control a stepper motor with a push of an RF button.

I am running into trouble right away just trying to verify my RF receiver works.

Control Im using: Keyfob 4-Button RF Remote Control - 315MHz : ID 1095 : $6.95 : Adafruit Industries, Unique & fun DIY electronics and kits
Reciever Im using: Simple RF M4 Receiver - 315MHz Momentary Type : ID 1096 : $4.95 : Adafruit Industries, Unique & fun DIY electronics and kits
I have an Arduino UNO R3 and a adafruit motorshield v2.3 attached on top of it. The motorshield is powered with a 12v wall charger and the arduino is through my computer.

I have the receiver +5V wired to 5v on the motor shield and ground wired to ground on the motorshield.

I then have D0 and D2 on receiver wired to digial pins 2 and 4 on motorshield respectively.

I was following this video tutorial:

I got the code from it as well, listed below. Im entirely new and just trying to figure things out. But my expected result is when I press crt-shift-m a screen appears and with the code running I should see the put from pushing the button. I see nothing. Im a bit lost and unsure where to look next.

Simple example for receiving


#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

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

void loop() {
if (mySwitch.available()) {

int value = mySwitch.getReceivedValue();

if (value == 0) {
Serial.print(“Unknown encoding”);
} else {
Serial.print("Received “);
Serial.print( mySwitch.getReceivedValue() );
Serial.print(” / ");
Serial.print( mySwitch.getReceivedBitlength() );
Serial.print("bit ");
Serial.print("Protocol: ");
Serial.println( mySwitch.getReceivedProtocol() );