Answer: Here.
Explanation: Microprocessor contacts with the motion sensor or basically any sensor according to its output type and supporting protocols , if it’s a digital sensor which means the output signal is a binary (parallel or serial) value then the microprocessor uses the peripheral interface protocols supported by this sensor and microprocessor like SPI or I2C .. etc.On the other hand if it’s an analog sensor which means that the output value is a voltage level then the microprocessor uses it’s Analog to Digital Converter (ADC) and reads this value and use it in any application ( the application here can be a sound signal for example).