Ultrasonic sensor
Use the Arduino IDE to upload the ultrasonic-sensor Pardalote example to your board, then connect below.
Upload the ultrasonic example to your Arduino and wire the HC-SR04. Then connect below (WiFi IP or USB) — move your hand in front of the sensor. Set the trig/echo pins at the top of sketch.js.