I am currently using the Arduino Pro Micro board and I want to connect 2 ultrasonic sensors to 1 board, whilst knowing which sensor is being triggered. The sensor I am using is a HC-SR04 Ultrasonic sensor.
Please help me thank you :)
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It only takes a minute to sign up.Sign up to join this community
What you need to do, for each sensor, is the following:
Example for one sensor (for 2 just do the same and keep in mind that there might be interferences, like the OP said):