Selecting a sensor and Catching Sensor alerts through api

Im unable to select a particular sensor through api and dont know how to get notifications or catch the sensor alerts if the value exceeds the sensor limits.

SolidworksSimulation