There should be some document come with the sensor if it support computer programming.
You need to read the document to find out how to implement it.