HELP ! Accelerometer's code ?

Hi !

I’m completely lost, I’m using an arduino UNO and i would to know wich accelerometer sensor should i buy and if you could help me with code, because i know how to set up the sensor but i’ve found no tutorial about what I want to do.
I would like to switch a led on when a defined number of the axes X or Y exceeds the limit.
So if you could tell which acceleremort (with a link or name model) should i use and an approximate code that goes with.
I put all my hopes in you guys, help me ! :slight_smile:

Search the forum for "encoder", to find out more about the determination of rotating positions or speed.