Hi HePe,
Most tools which have a Python API should be compatible with PsychoPy!
There are definitely more precise tools available, but I’ve personally worked with Eduloggers a fair bit and they’re quite compatible with Python, so you could use their motion sensor:
I wrote some functions for driving Eduloggers in Python when I was a technician at Lincoln which you could use, although I’ve only ever tested them with biosensors: