I've been trying to use a KY-022 to read IR signals. However no output is being produced and the LED on the board is constantly on.

Board: Arduino Uno R3

I followed the procedure found here.

The code:

#include <IRremote.h>

int RECV_PIN = 11;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup() {
  // In case the interrupt driver crashes on setup, give a clue
  // to the user what's going on.
  Serial.println("Enabling IRin");
  irrecv.enableIRIn(); // Start the receiver
  Serial.println("Enabled IRin");

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value

The output:

Enabling IRin
Enabled IRin

The LED is constantly on, it should come on when there's a signal received. However this is not shown in the output. :/ I don't know what to do.


Board! Board-upside-down, top-row corresponding to Signal! Setup

2 Answers 2


The first thing to look at is the circuit board. Are they using the resistor and LED to indicate the board is receiving power? The data sheet has a schematic showing several passive components in the "3. ApplicationCircuit" section. Here is a copy of the schematic I have used that worked with the IRremote library (Version 0.1 July, 2009 - Copyright 2009 Ken Shirriff).

enter image description here

  • I'll be honest with you, I'm completely new to this, I think the LED is connected to Signal and 5V...?
    – Max
    Mar 7, 2018 at 1:05
  • If its any help, if I dont have the reciever plugged in, I still get the same output, that it has been enabled
    – Max
    Mar 7, 2018 at 1:09
  • Let's try something simple to begin with. Add a 10k ohm or 15k ohm resistor between 5V and the circuit board output pin. Try the "IRrecvDump.ino" sketch that comes with the library (this sketch seems to provide more information about the possible type of remote you have).
    – VE7JRO
    Mar 7, 2018 at 1:10
  • I think I added the 10k resistor correctly.. nothing, no output, led is still on
    – Max
    Mar 7, 2018 at 1:22
  • 1
    I don't think the LED will flash or turn ON when an IR signal is received. Unfortunately I can not see the bottom of the circuit board in the product link you have provided so I can't be 100% certain that the LED is just a "power indicator". Could you edit your question and add a picture showing how you have everything connected?
    – VE7JRO
    Mar 7, 2018 at 2:03

This happened to me when I "fried" my IR receiver.

Everything was fine and working until I accidentally reversed ground and +5v when putting my project back together after a tear down. After correcting the wiring, the LED stayed on, and no reading was coming out.

Did you ever get any pins wrong?

This video show the correct wiring. https://www.youtube.com/watch?v=iFpAqG90zY0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.