Advanced HC-SR04 (distance sensor) example