# Ultrasonic using Millis

**URL:** <https://forum.arduino.cc/t/ultrasonic-using-millis/632404>\
**Category:** Sensors\
**Created:** [January 22, 2020, 7:14am UTC](https://forum.arduino.cc/t/ultrasonic-using-millis/632404 "2020-01-22T07:14:03Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![kalyegwapo14](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@kalyegwapo14](https://forum.arduino.cc/u/kalyegwapo14)\
**Post date:** [January 22, 2020, 11:31am UTC](https://forum.arduino.cc/t/ultrasonic-using-millis/632404/21 "2020-01-22T11:31:48Z")

</div>

Sry for the late reply sir the forum got maintenance, but Sir thank you very much ...the program is working perfectly 🙂 🙂  
thank you sir 🙂

---

<div class="post-metadata">

**Author:** ![bay5s](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bay5s](https://forum.arduino.cc/u/bay5s)\
**Post date:** [January 22, 2020, 12:04pm UTC](https://forum.arduino.cc/t/ultrasonic-using-millis/632404/22 "2020-01-22T12:04:17Z")

</div>

I think it work

---

<div class="post-metadata">

**Author:** ![LarryD](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/larryd/32/215550_2.png) [@LarryD](https://forum.arduino.cc/u/LarryD)\
**Post date:** [January 22, 2020, 4:18pm UTC](https://forum.arduino.cc/t/ultrasonic-using-millis/632404/23 "2020-01-22T16:18:10Z")

</div>

> kalyegwapo14:  
> Sry for the late reply sir the forum got maintenance, but Sir thank you very much ...the program is working perfectly 🙂 🙂  
> thank you sir 🙂

Good.

Do you understand what code was added and why?

---

<div class="post-metadata">

**Author:** ![kalyegwapo14](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@kalyegwapo14](https://forum.arduino.cc/u/kalyegwapo14)\
**Post date:** [January 22, 2020, 11:56pm UTC](https://forum.arduino.cc/t/ultrasonic-using-millis/632404/24 "2020-01-22T23:56:53Z")

</div>

> larryd:  
> Good.
> 
> Do you understand what code was added and why?

i dont know if this correct sir but i think its the boolean you added , if the my understanding is correct once the distance \< 10 and stay there it print the immediate message and it will not send the message 2 unless the distance go up. And also it started the counting time in millis to print message based on the time inteval given. I hope my understanding is correct 🙂

btw, thank you again sir 🙂

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 10:28am UTC](https://forum.arduino.cc/t/ultrasonic-using-millis/632404/25 "2021-05-06T10:28:08Z")

</div>

Closed on May 6, 2021, 10:28am UTC



[Previous page](https://forum.arduino.cc/t/ultrasonic-using-millis/632404.md?page=1)
