Thanks for your answer. You are right this could be the problem. I will try it out in the near future.
what am I doing wrong? when I press button A the first time, the routine runs cleanly, i.e. I see the distance from the TOF unit, so we stay in the DO-UNTIL loop until the condition is met. If I then press the button A a second time, the routine will not run cleanly, i.e. we immediately break out of the DO-UNTIL loop. The next time I press button A the DO-UNTIL loop is correct again....etc.
Thanks for the help.
Translated with www.DeepL.com/Translator (free version)
Is it normal that the fire device is quite loud in operation i.e. it makes a high pitched beeping noise. I have another core2 and it is much quieter.
Is this normal or is there something wrong with my device?
Thanks for your feedback.