<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read(self):
 """ Read pin value @rtype: int @return: I{0} when LOW, I{1} when HIGH """

        val = self._fd.read()
        self._fd.seek(0)
        return int(val)