How do I use push button as a command button?

2 posts were merged into an existing topic: How to use Ultrasonic sensor as trigger?