<div dir="ltr">hi there everybody, i have a question about the PIR in firmata. I&#39;m connecting a PIR sensor to an ardunio board and then programming it on Pd using the Firmata firmware. Then, the input from the PIR sensor will detect any motion and any voltage output will be used to trigger a bang. But i have a problem, i guess the sensor will trigger the bang twice, since the output from the sensor change twice from a single motion. The question is how can i make the bang only react from the first trigger and then ignores the second trigger. I&#39;ve used the delay routed to number &quot;0&quot;, but it&#39;s useless since there&#39;s no exact time when the second trigger will occur. Any idea everybody.<br>
<br>And when i debug the firmata, for every single detected output, i have a message like these <br clear="all"><br>DEBUG: 144<br>DEBUG: 4<br>DEBUG: 0<br>DEBUG: 144<br>
DEBUG: 4<br>
DEBUG: 0<br>DEBUG: 144<br>
DEBUG: 0<br>
DEBUG: 0<br>DEBUG: 144<br>
DEBUG: 0<br>
DEBUG: 0<br><br>can anybody tell me what these messages means? is my system working correctly?<br><br>many thanks in advance.<br><br>
</div>