Why is my IR sensor taking values non stop even though I pressed the button on remote only once?

Here is code:


Here is circuit:

Here is Serial Monitor:

No, that's a picture of code.

Post actual code.
If there are error messages, post actual error messages.

We can't paste pictures into the IDE.

1 Like

Most probably you forgot to re-enable the IR receiver.

Please learn how to use the forum for substantial help.

1 Like

@rahul_pro - When you add code to your topic, click on the < CODE > button, then copy/paste your code where you see '''type or paste code here'''

Your code needs some changes. Compare it to this IRremote sketch... look for this to solve the non-stop issue:

    irrecv.resume();  // Receive the next value

Thank you, I actually did forget in haste to re-enable the IR receiver.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.