# IR remote to IR Sensor on ESP8266 to brighten/dim leds

**URL:** https://discourse.nodered.org/t/ir-remote-to-ir-sensor-on-esp8266-to-brighten-dim-leds/84764
**Category:** General
**Created:** [21 January 2024 00:04 UTC](https://discourse.nodered.org/t/ir-remote-to-ir-sensor-on-esp8266-to-brighten-dim-leds/84764 "2024-01-21T00:04:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)
#### Post date: [21 January 2024 00:04 UTC](https://discourse.nodered.org/t/ir-remote-to-ir-sensor-on-esp8266-to-brighten-dim-leds/84764/1 "2024-01-21T00:04:27Z")

</div>

Hey All,  
I have an IR sensor hooked up to an esp8266 that sends message over mqtt to node red. I want to brighten and dim LEDs from the a remote control. For example I want to use the up button on the remote to brighten. The lights will work on a range of 0 - 250.

The remote sends the same signal over and over; up, up, up. How doI handle the data once it gets to node red?

Thanks  
Rich

---

<div class="post-metadata">

### Author: ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)
#### Post date: [21 January 2024 01:38 UTC](https://discourse.nodered.org/t/ir-remote-to-ir-sensor-on-esp8266-to-brighten-dim-leds/84764/2 "2024-01-21T01:38:56Z")

</div>

I figured out how to do this using the counter node

> **[node-red-contrib-counter](https://flows.nodered.org/node/node-red-contrib-counter)**
>
> A Node-RED node to create a counter with messages.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [4 February 2024 01:39 UTC](https://discourse.nodered.org/t/ir-remote-to-ir-sensor-on-esp8266-to-brighten-dim-leds/84764/3 "2024-02-04T01:39:26Z")

</div>

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