Serial monitor is blank

So, my code goes as follows:

#include <IRremote.h>

const int rec = 7;

void setup() {

Serial.begin(9600);

IrReceiver.begin(rec, ENABLE_LED_FEEDBACK);

}

void loop() {

if (IrReceiver.decode()) {

Serial.println(IrReceiver.decodedIRData.decodedRawData, HEX);

delay(50);

IrReceiver.resume();

}

}

At the end, the serial monitor just shows me a blank screen with no codes. Whats wrong

Touch here for the full post on the Arduino Apprentices tumblr

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s