Problem with movement counter

I'm making a counter that when the gyroscope reaches certain angle values it increments a variable... however it's not counting when it reaches certain values, the timer is there so that the same movement doesn't count more than once, the timer needs to be activated like this that the movement reaches the angle values on the gyroscope

You probably need to keep some history of your acceleration values, to give you a basis for deciding when you have reached some value and turned back from it.

Use global lists.

how i make this?

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.
export_and_upload_aia

Here is the simplest possible solution, in one dimension:
blocks


seesaw.aia (2.3 KB)

This tests how many times you have rocked your phone like a seesaw.

The if/then test triggers when the previous Y Acceleration was less than 0 and the new Y Acceleration is above zero.

If you trust your angle calculations (I don't), you can use old and new angles compared to a target angle value.