user43478: 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() {
  Serial.begin(9600);
  // 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
  }
  delay(100);
}

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.
Pictures:




user37523: 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).


43478: <p>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. </p>

<p>Board: Arduino Uno R3</p>

<p>I followed the procedure found <a href="https://arduinomodules.info/ky-022-infrared-receiver-module/" rel="nofollow noreferrer">here</a>.</p>

<p>The code: </p>

<pre><code>#include &lt;IRremote.h&gt;

int RECV_PIN = 11;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup() {
  Serial.begin(9600);
  // 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(&amp;results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value
  }
  delay(100);
}
</code></pre>

<p>The output:</p>

<pre><code>Enabling IRin
Enabled IRin
</code></pre>

<p>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.</p>

<p>Pictures:</p>

<p><a href="https://i.stack.imgur.com/Mxkt2.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mxkt2.jpg" alt="Board!"></a>
<a href="https://i.stack.imgur.com/o4XLf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o4XLf.jpg" alt="Board-upside-down, top-row corresponding to Signal!"></a>
<a href="https://i.stack.imgur.com/4alhh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4alhh.jpg" alt="Setup"></a></p>
 37523: <p>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).</p>

<p><a href="https://i.stack.imgur.com/JhPlq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JhPlq.png" alt="enter image description here"></a></p>
