Any suggestions to connect trig and echo of ultrasonic to microcontroller via dc

could you please have a look of this video but no any schematic & code for communication

Link