Tutorial to use Ultrasonic HC-SR04 module with "skiiiD."
#1 Launch skiiiD and select New button
#2 Select ①Arduino Uno and then click ②OK button
#1 Click '+' (Add Component Button) to search and select the component.
#2 ① search Ultrasonic Module on the search bar and
#3 ②Click Joystick Module,
#4 then you can see ③ pin indication. (You can configure it.)
#5 ④ click ADD button
#6 ⑤ Added Module has appeared on right pane on the editor page.
#1 skiiiD library provides 2 functions
1) getDistance - As it says, get distance from the module to an obstacle.
2) getDuration - this function measures the travel time of ultrasonic from module to an obstacle.