<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema  
            xmlns:nwis="http://water.usgs.gov/XML/NWIS/5.0" 
             
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
            elementFormDefault="qualified" version="5.0">

  <xsd:include schemaLocation="../shared/ReferenceListCodeType.xsd"/>
  <xsd:include schemaLocation="../shared/DateTimeWithDatumPartial.xsd"/>
  <xsd:include schemaLocation="../shared/IEEE754FloatValue.xsd"/>

  <xsd:element name="SensorReading">
    <xsd:annotation>
      <xsd:documentation>
        <Definition>One reading of a sensor at a given point in time.</Definition>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="ReadingDateTime" type="DateTimeWithDatumPartial">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The date and time of the sensor reading.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="SensorMeasure" type="IEEE754FloatValueType">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The value of the sensor reading. The default units are the units defined in the sensor.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="MeasureAccuracy" type="IEEE754FloatValueType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The user-defined accuracy of the sensor reading. The default units are the units defined in the sensor.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="AccuracyMethodCode" type="ReferenceListCodeType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The code identifing the method for determining the accuracy of the reading.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="PrimaryReferenceSensorIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Is this a reading of the primary reference (non-recording) sensor?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="PrimaryRecorderIndicator" type="xsd:boolean" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>Is this a reading from the primary (preferred input) recorder?</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="RemarkCode" type="ReferenceListCodeType" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation>
              <Definition>The Code indicating a remark about the value of the measurement.</Definition>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>
