# Thief Detection System Trial seems to be not working

**URL:** <https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479>\
**Category:** Off Topic\
**Tags:** help\
**Created:** [June 1, 2021, 2:23pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479 "2021-06-01T14:23:13Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![stella-beckett\_2](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stella-beckett_2/32/106919_2.png) [@stella-beckett\_2](https://community.thunkable.com/u/stella-beckett_2)\
**Post date:** [June 1, 2021, 2:23pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/1 "2021-06-01T14:23:13Z")

</div>

I made an app to see how the room exit is locked down when it detects an unusual presence of a person.  
When the thief comes in, it’s supposed to play alert.mp3, but it doesn’t.  
[Here’s the link.](https://x.thunkable.com/projects/60b63636cb50fb0fddb90249/59197f71-ac8b-4322-ab43-32828268e57b/blocks)

I need help today, the deadline is tomorrow, I can’t submit it tomorrow.

---

<div class="post-metadata">

**Author:** ![human](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/human/32/101416_2.png) [@human](https://community.thunkable.com/u/human)\
**Post date:** [June 1, 2021, 2:39pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/2 "2021-06-01T14:39:46Z")

</div>

Alert.mp3’s volume is only 5. Could that be the problem?

---

<div class="post-metadata">

**Author:** ![stella-beckett\_2](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stella-beckett_2/32/106919_2.png) [@stella-beckett\_2](https://community.thunkable.com/u/stella-beckett_2)\
**Post date:** [June 1, 2021, 2:42pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/3 "2021-06-01T14:42:11Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1afe58ab7ba7c2c48c58ebd5eea68a4bc8a1f791.png)  
I set it to 50, it still doesn’t put the alarm. Maybe the system likes the thief guy…

---

<div class="post-metadata">

**Author:** ![human](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/human/32/101416_2.png) [@human](https://community.thunkable.com/u/human)\
**Post date:** [June 1, 2021, 2:56pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/4 "2021-06-01T14:56:03Z")

</div>

The variable lockFlag never becomes false, which is why the sound never plays. I guess you need to fix your logic in the nandLogic Function or somewhere else.

---

<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:** [June 1, 2021, 2:59pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/5 "2021-06-01T14:59:55Z")

</div>

If you’re working on an assignment or a project for a paid client, the deadline is your own responsibility. We can’t rush to help you just because you’re in a hurry. I hope you understand that.

You haven’t given much explanation about how your app is supposed to work. Your explanation makes sense but how is your app designed to do that? For example, what would the expected outcome be (e.g. variable values) and what is actually happening when you preview it?

You might need to use the “when [sound] source loaded” block. See [Sound - Thunkable Docs](https://docs.thunkable.com/sound).

Which parts of the code do you want help with?

---

<div class="post-metadata">

**Author:** ![human](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/human/32/101416_2.png) [@human](https://community.thunkable.com/u/human)\
**Post date:** [June 1, 2021, 3:05pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/6 "2021-06-01T15:05:06Z")

</div>

You see, the lockFlag variable returns true, the MotionSensorFlag Variable returns false, and the LaserLightFlag variable returns true.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/0/004416dbc61d2cc70819567fab384a569383a3b0.png)

---

<div class="post-metadata">

**Author:** ![stella-beckett\_2](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stella-beckett_2/32/106919_2.png) [@stella-beckett\_2](https://community.thunkable.com/u/stella-beckett_2)\
**Post date:** [June 1, 2021, 3:06pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/7 "2021-06-01T15:06:57Z")

</div>

I understand…

P.S. It’s not for a client, it’s a project with my friends, Evelyn and Lynn. I’m in charge of 100% of the code.

---

<div class="post-metadata">

**Author:** ![stella-beckett\_2](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stella-beckett_2/32/106919_2.png) [@stella-beckett\_2](https://community.thunkable.com/u/stella-beckett_2)\
**Post date:** [June 1, 2021, 3:11pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/8 "2021-06-01T15:11:37Z")

</div>

> [@tatiang](#):
>
> You might need to use the “when [sound] source loaded” block. See [Sound - Thunkable Docs](https://docs.thunkable.com/sound).

> [@human](#):
>
> You see, the lockFlag variable returns true, the MotionSensorFlag Variable returns false, and the LaserLightFlag variable returns true.

Okay, will this work?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/c/dc4a2893377867bcfa5c3a615e1c62a709acda06.png)

---

<div class="post-metadata">

**Author:** ![human](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/human/32/101416_2.png) [@human](https://community.thunkable.com/u/human)\
**Post date:** [June 1, 2021, 3:16pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/9 "2021-06-01T15:16:01Z")

</div>

You could use this event handler block to check if app variable lockFlag is true.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/5/f5e93e0d028fcd587e42fab79ffb2512aa409c02.png)

---

<div class="post-metadata">

**Author:** ![stella-beckett\_2](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stella-beckett_2/32/106919_2.png) [@stella-beckett\_2](https://community.thunkable.com/u/stella-beckett_2)\
**Post date:** [June 1, 2021, 3:18pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/10 "2021-06-01T15:18:21Z")

</div>

> [@human](#):
>
> ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/5/f5e93e0d028fcd587e42fab79ffb2512aa409c02.png)

Did you mean this?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/7/c7139036230b6d742a6e01f475bcf16d23e4c4b2.png)

---

<div class="post-metadata">

**Author:** ![stella-beckett\_2](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stella-beckett_2/32/106919_2.png) [@stella-beckett\_2](https://community.thunkable.com/u/stella-beckett_2)\
**Post date:** [June 1, 2021, 3:33pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/11 "2021-06-01T15:33:23Z")

</div>

My app is working as expected. Thank you!

```
<h1> Thank you! </h1>
<h2>to Human</h2>
```

---

<div class="post-metadata">

**Author:** ![human](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/human/32/101416_2.png) [@human](https://community.thunkable.com/u/human)\
**Post date:** [June 1, 2021, 4:02pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/12 "2021-06-01T16:02:52Z")

</div>

Great! Always happy to help!

One more suggestion, you should probably change this topic’s name so that it will be easier for others to find if they are facing the same problem.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/thief-detection-system-trial-seems-to-be-not-working/1320479/13 "2024-11-08T13:22:06Z")

</div>


