change sample amount of ultrasound sensor