# Help - When ------ initialize or changes dont works

**URL:** <https://community.thunkable.com/t/help-when-initialize-or-changes-dont-works/1658025>\
**Category:** Questions about Thunkable X\
**Created:** [December 21, 2021, 2:42am UTC](https://community.thunkable.com/t/help-when-initialize-or-changes-dont-works/1658025 "2021-12-21T02:42:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![edeitos2yp](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@edeitos2yp](https://community.thunkable.com/u/edeitos2yp)\
**Post date:** [December 21, 2021, 2:42am UTC](https://community.thunkable.com/t/help-when-initialize-or-changes-dont-works/1658025/1 "2021-12-21T02:42:31Z")

</div>

Hello every one,

I’m trying to use a listner from my RDB but its not working, let me explain.

I have a ESP32 that write in the firebase the signal of a sensor and I want to updating my app with the realtime value. Please if someone could have a look in my blocks.

![stes](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/e/ee2dd0f8009a7e48e41c05b86479797950b0985c.png)

In the code above, when the ESP32 write in the way _“/\*\*\*\*\*/Bombas/Recalque/onoff”_ the Live Web preview app dont read the value, it keeps showing the last value after initilized.

thanks.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 21, 2021, 2:52am UTC](https://community.thunkable.com/t/help-when-initialize-or-changes-dont-works/1658025/2 "2021-12-21T02:52:44Z")

</div>

Where is `dbETOS` in the Firebase path? I can’t tell from your screenshot.

Have you tried something simpler? For example, `when cloud variable dbETOS initializes or changes, set label's value to "changed"`? Does that work, without any if/else blocks? Sometimes people complicate things by adding all of these conditions and it’s hard to tell what is and is not working. So start really simple and get that working first.

I don’t see an obvious problem with your blocks… except that Firebase might be returning the text strings “0” and “1” instead of the numbers 0 and 1 so you should test to see if that is the case.

---

<div class="post-metadata">

**Author:** ![edeitos2yp](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@edeitos2yp](https://community.thunkable.com/u/edeitos2yp)\
**Post date:** [December 21, 2021, 12:19pm UTC](https://community.thunkable.com/t/help-when-initialize-or-changes-dont-works/1658025/3 "2021-12-21T12:19:58Z")

</div>

Thanks tatiang,

I was giving tha wrong path to my FB. 🙃

Now its working fine.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 21, 2022, 12:19pm UTC](https://community.thunkable.com/t/help-when-initialize-or-changes-dont-works/1658025/4 "2022-03-21T12:19:58Z")

</div>

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