Matrix Bot LV-MaxSonar-EZ1 Code?

what class do we use for the LV-MaxSonar-EZ1 ?
do we use the ultrasonic class, if so, what are the ping and echo slots?

it seems like the ultrasonic class is for older sonar sensors so what do we use?

I don’t think the ultrasonic class works with this sonar sensor. You should just instantiate an analog channel for this sensor (if you are connecting it via analog input).

Use an Analog channel. Each inch = 0.01 volt, so you’ll see 0.73 volts for 73 inches, for example.