Hi Alexandre, The philosophy of libpd is that Pd is supposed to do audio processing and audio processing only, and communication between libpd and client code happens via Pd messages. Anything else, such as handling sensor input, is the responsibility of the client code.
Cheers, Peter