sensors module provides the support for getting the sensor information of the device, including the distance sensor, light sensor, gravity sensor, orientation sensor, etc. Note that this module can only get the sensor data, Auto.js Pro does not provide the simulation or fake sensor data and event function.
Get the sensor object by the specified sensor name, or
undefined if not found.
A list of common sensors:
See Sensor for a full list.
the sensor name
the sensor object, or undefined