code: def read(self):
          
          if self.mode == UNAVAILABLE:
              raise IOError("Cannot read pin {0}".format(self.__str__()))
          return self.value
docs: Returns the output value of the pin. This value is updated by the
          boards :meth:`Board.iterate` method. Value is always in the range from
          0.0 to 1.0.