Ultrasonic using Millis

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

I think it work

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

Good.

Do you understand what code was added and why?

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 :slight_smile:

btw, thank you again sir :slight_smile: