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

is there any schematic & code to start testing?