# Continuously checking an input between multiple points

**URL:** <https://forum.universal-robots.com/t/continuously-checking-an-input-between-multiple-points/19811>\
**Category:** Technical Questions\
**Created:** [March 10, 2022, 2:49pm UTC](https://forum.universal-robots.com/t/continuously-checking-an-input-between-multiple-points/19811 "2022-03-10T14:49:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvick](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jvick](https://forum.universal-robots.com/u/jvick)\
**Post date:** [March 10, 2022, 2:49pm UTC](https://forum.universal-robots.com/t/continuously-checking-an-input-between-multiple-points/19811/1 "2022-03-10T14:49:16Z")

</div>

Hi guys, I was wondering if there was a way to program the robot to be continuously looking for feedback from a digital input. For example. I have the robot dropping a part through a part sensor but sometimes it drops the part quicker than other times and gets through the sensors before the robot is looking for that input.

---

<div class="post-metadata">

**Author:** ![eric.feldmann](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@eric.feldmann](https://forum.universal-robots.com/u/eric.feldmann)\
**Post date:** [March 10, 2022, 5:30pm UTC](https://forum.universal-robots.com/t/continuously-checking-an-input-between-multiple-points/19811/2 "2022-03-10T17:30:25Z")

</div>

You’ll want to use the “Thread” command. It’s essentially another program running in parallel.

![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/6/60ff30b9a02b7e041bfb9a0e2947558e9e6ece9b.png)

Usually a good idea to put a Script command “sync()” at the end of the thread to avoid the robot throwing an error about the thread using too much time.

---

<div class="post-metadata">

**Author:** ![jvick](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jvick](https://forum.universal-robots.com/u/jvick)\
**Post date:** [March 10, 2022, 6:21pm UTC](https://forum.universal-robots.com/t/continuously-checking-an-input-between-multiple-points/19811/3 "2022-03-10T18:21:42Z")

</div>

Thank you! I’ll try that out and get back to you!
