Need help with controlling all components in build using ultrasonic sensor please help asap

Did you read the documentation before you wrote the code? I see "attach() This function configure sensor with arduino" in the documentation, but do not see it in your code.
Paul