Parking Sensor. I'm new to programming, please help

You could try a MPU6050 to detect car movement