Hi, I want to know the best way to, make code to run ONE Arduino, ONE 3 AXIS ACCELERATION SENSOR MMA7660 module, and ONE LED.

What I want the code to do is. I want to put the 3 axis mma7660 module on the clothes dryer in my home.

The 3 axis mma7660 module will work with the Arduino.

The Arduino will read the 3 axis mma7660 module (shake or not shake).

Arduino would read the state of the 3 axis mma 7660 module from minute to minute. Read state of 3 axis mma 7660 module,then one minute would go by, then read the state of the 3 axis mma 7660 module, and so on.

What I don't know how to do is, program the code, thatwill read the mma7660 module. What I mean by that is.How will the 3 axis sensor know when the dryer is shaking or moving? Because all I know how to do is make the 3 axis read in degrees on x y and z. (-/+). Is there A way to read the output of the 3 axis module.If the module is sitting still, there would be (0). If the 3 axis wasmoving, there would be (100).

The first code is the one that give's me data on the mma7660 3 axis accelerometer. What I don't know how to do is get more sensitivity out of the (mma7660 3 axis accelerometer). Angles and Degree's can't read the dryer when it is on and running. I need to read the shaking, little movement and sensitivity of the dryer. This is what the (mma7660 3 axis accelerometer) should read as data.

You should be able to simplify this somewhat. Use your first program and compare the data when the drier is off and when it is running. Which axis shows the most difference? Keep a moving average of that axis and use it to tell you whether the LED is on or off. Alternatively, just use a current sensor to tell you how much power the device is pulling.