button and ultrasonic tester code