the following article might help u with your projects. it includes a few complete operating programs.
find it here:
https://www.electro-tech-online.com/custompdfs/2005/03/Operating_Sensors_for_Robot.pdf
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.