Array of HC-SR04

madmax7897:
The echo pin must use a PWM pin and the arduino mega only has 16 pwm pins. By using this pwm shield number of PWMs can be increased up to 992 ports.

The echo pin is an output from the sensor, connected to an input on the processor.
PWM pins are processor outputs.