This is some basic code for the ultrasonic sensor that i got off a webpage. link  to page will be in a README