@silky ok, got it… so, what is the problem?

is there some python code that can read the sensor connected to the gpio pins?

typically in MM us have a node_helper .js which lanuches a pythin script, which runs forever ans prints out ‘connected’ or ‘not connected’.

then the lanucher code in helper (uses spawn) has handler to react to the print

stdout.on('data, (print_content)=> { // some function code to to // maybe send event up to module to handle this.sendSocketNotification(sensor_event, print_content) })