controlling led with mpu 6050

heys guys , i am new to arduino and you plz give me some links or code for an led controlled by the movement of mpu6050. i wanted to use it in a burglar alert system.plz help

Try here

I've just deleted TWO cross-posts of this question.

DO NOT CROSS-POST, CROSS-POSTING WASTES TIME.

(Hint: This isn't a programming question)