The default timeout is 1000 milliseconds (1 second). What value are you trying? Does your proximity sensor really need more than a second to respond? If not, perhaps the wiring is wrong.
The default timeout is 1000 milliseconds (1 second). What value are you trying? Does your proximity sensor really need more than a second to respond? If not, perhaps the wiring is wrong.