Movement sensor

Hello, I would like to ask if the device is standing vertically and is, say, placed on a door. The door moves and detects it. How can I do this because I've tried everything but it doesn't work.

You might want to do some experiments with the accelerometer sensor


I need a new com accelerometer when reakt when the phone move or something

sorry, I do not understand, what you are talking about
see here how to ask questions