// Check for various sensors and set appropriate global constants.
// Currently only checks for grav sensor, as that's the only one used by this library.
// global HAS_GRAV_SENSOR is false.
// function SensorCheck {
//   local SensorList is 0.
//   list SENSORS in SensorList.
//   for s in SensorList {
//     if s:type = "grav" {
//       print "Gravometric sensor detected".
//       set HAS_GRAV_SENSOR to true.
//       return.
//     }
//   }
//   set HAS_GRAV_SENSOR to false.
// }