3 Pin Ultrasonic Sensor

This code reads a value from an ultrasonic sensor with 3 pins: ground, voltage, and signal. The signal pin plugs into a digital pin on the Arduino, and the code changes the pin mode as needed to both send and received data to the sensor via one wire.

To use this node in your Embrio project, either add it from the Library toolbar or copy the XML in the below box and paste it into a node screen.