I'm using a sensor that has binary output, but it sends this out continuously. I'm using IR obstacle sensors, that based on if an obstacle is in front of it send out a sound. However, it continuously sends out the signal. How can I change it to recognize that when an object is in front of it, and stays in front of it, it only makes the sound once. Instead of using the continuous signal from the sensors to keep producing sounds? This is the patch I'm working with:
It gets its input through the port via an arduino