# Modifying the Value on a Sensor

**URL:** <https://community.homey.app/t/modifying-the-value-on-a-sensor/116932>\
**Category:** Questions & Help\
**Created:** [September 29, 2024, 4:37pm UTC](https://community.homey.app/t/modifying-the-value-on-a-sensor/116932 "2024-09-29T16:37:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dudu\_95](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dudu_95/32/93061_2.png) [@dudu\_95](https://community.homey.app/u/dudu_95)\
**Post date:** [September 29, 2024, 4:37pm UTC](https://community.homey.app/t/modifying-the-value-on-a-sensor/116932/1 "2024-09-29T16:37:52Z")

</div>

Hello,  
I have a motion sensor that measures light intensity in lux, and I use it to notify me if the light has stayed on above a certain threshold. However, sometimes the sensor gets stuck at 20 lux even when it’s dark. I would like to create a virtual button that, once pressed, resets the value to 0 lux. Is it possible to modify this value, and if so, could you guide me on how to do it? Thank you.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [September 29, 2024, 5:05pm UTC](https://community.homey.app/t/modifying-the-value-on-a-sensor/116932/2 "2024-09-29T17:05:05Z")

</div>

You can’t change sensor values for normal devices.

Perhaps you can use one of the virtual device apps to create a virtual motion sensor that can be reset like that (since those apps allow you to set capability values from flows).

---

<div class="post-metadata">

**Author:** ![dudu\_95](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dudu_95/32/93061_2.png) [@dudu\_95](https://community.homey.app/u/dudu_95)\
**Post date:** [September 30, 2024, 11:02am UTC](https://community.homey.app/t/modifying-the-value-on-a-sensor/116932/3 "2024-09-30T11:02:05Z")

</div>

Okay, thank you, I’ll try.
