How to create a distance matrix using the HC-SR04 sensor?

Red is the reset button on my board