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

How the Hell do I know?
You're the one with the hardware to test it.