code: public EventRecord[] monitor() {
      EventRecord[] recs = new EventRecord[1];
  
      try {
        recs[0] = query(null);
      } catch (Exception e) {
        e.printStackTrace();
      }
  
      return recs;
    }
docs: Invokes query() to do the parsing and handles parsing errors.
  
  @return an array of EventRecords that holds one element that represents
  the current state of the hardware sensors