I have an array of 6 ultra sonic sensors connected to my Arduino MEGA2560. These sensors are located at the bottom of a monitor. I am getting correct distances, and this part is working fine. I am seeking help to turn these distances into mouse movements (to turn an ordinary monitor into a touch screen display). I am new to coding, and I could use some help.
Maybe I could use a bunch of “If statements”? If so, could you provide me with an example?
Here is the working code I have. Please let me know how I should move on with this project.
Array_Of_6_Ultrasoic_Sensors.ino (3.69 KB)