<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def value(self):
 """Returns the value of an ADC pin as an integer."""

        return self._ads.read(self._pin_setting, is_differential=self.is_differential)