the accelerometer with Arduino MEGA

the accelerometer with ?Arduino MEGA
i need to control my object by using the accelerometer that detect the change in distance in 3-axis " X,Y,Z" by detect acceleration.
I read about it before that " The Accelerometer sensor is an add-on for your RedBot that provides bump and motion detection. The sensor works by measuring acceleration forces on the x, y, and z axis. By measuring the amount of acceleration (or lack there of) your robot can get a better understanding of its movements.

There is no "the" accelerometer there are many different types.

So:-

The Accelerometer sensor is an add-on for your RedBot

That one.

Was there a question here?
If so a link to the accelerometer you are talking about along with a decent question would be good.

i need to control my object by using the accelerometer that detect the change in distance in 3-axis " X,Y,Z" by detect acceleration.

All 3axis accelerometers do that! whats the big deal? are you asking that you want to use a accelerometer but donot know which accelerometer to buy, then goto sparkfuns accelerometer buying guide.