GetProximity()


p = GetProximity()

This function returns the proximity sensor distance measured in centimeters. Note that some proximity sensors only support a binary "close" or "far" measurement. In this case, the sensor should report its maxRange value in the "far" state and a value less than maxRange in the "near" state.






Become a Patron